EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: wel on January 06, 2016, 06:21:52 PM



Title: formatter function
Post by: wel on January 06, 2016, 06:21:52 PM
I can not find explaining in the documentation, what the formatter function is doing in this combobox ?

Code:
<th data-options="field:'work_group_id',width:10,
            formatter:function(value,row){
               return row.work_group;
            },
            editor:{
            type:'combobox',
            options:{
            valueField:'work_group_id',
            textField:'work_group',
            method:'get',
            url:'pages/work_groups.php',
            required:true
          }
    }">Groups</th>

</tr>


Title: Re: formatter function
Post by: aswzen on January 06, 2016, 06:55:59 PM
that is a datagrid column formatter not a combobox formatter..


Title: Re: formatter function
Post by: wel on January 06, 2016, 07:02:01 PM
many thanks