EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: arma on February 07, 2015, 09:15:29 PM



Title: Override Combo underlying data value and field
Post by: arma on February 07, 2015, 09:15:29 PM
Just a trivial question,

How to override valueField and TextField that can be applied globally for all combobox ?

valueField: 'myid',
textField: 'mytext',

Thanks


Title: Re: Override Combo underlying data value and field
Post by: jarry on February 08, 2015, 01:54:01 AM
Please override the combobox default options.
Code:
<script>
$.extend($.fn.combobox.defaults, {
  valueField: 'myid',
  textField: 'mytext'
});
</script>