EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jega on December 24, 2022, 03:06:29 AM



Title: [SOLVED]Filterbuilder more fields with own editor
Post by: jega on December 24, 2022, 03:06:29 AM
If i have this code, and change field from status to typeName, the combobox still have the values from status combobox, not the values from typeName

      $('#fb').filterbuilder({
         rules: [{
            op: 'or',
            children: [{
               field: 'status',
               op: 'equal',
               value: '1'
            }]
         }],
         fields: [
            {
               field:'status',
               title:'Status',
               editor:{
                  type:'combobox',
                  options:{
                     editable:false,
                     width: '200px',
                     data:[
                        {value:'0',text:'Under udvikling'},
                        {value:'1',text:'Aktiv'},
                        {value:'2',text:'Afsluttet'},
                        {value:'3',text:'Pause'}
                     ]
                  }
               }
            },{
               field:'typeName',
               title:'Type',
               editor:{
                  type:'combobox',
                  options:{
                     editable:false,
                     width: '200px',
                     data:[
                        {value:'Fagspecialist',text:'Fagspecialist'},
                        {value:'Processejer',text:'Processejer'}
                     ]
                  }
               }
            }
         ],
         operators: opList
      })


Title: Re: Filterbuilder more fields with own editor
Post by: jarry on December 29, 2022, 06:19:58 AM
This issue has been fixed. Please try to update to the latest version.


Title: Re: Filterbuilder more fields with own editor
Post by: jega on December 29, 2022, 09:06:09 AM
Thanks.

Works


Happy New Year