EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Ellipsis on October 08, 2012, 12:47:47 AM



Title: reusable options?
Post by: Ellipsis on October 08, 2012, 12:47:47 AM
We use multiple easyui objects and we are wondering if it's possible to define 'standard' option values, to set to all combogrids for example.


Title: Re: reusable options?
Post by: stworthy on October 08, 2012, 01:12:33 AM
Please override the default options of combogrid. The code looks like this:

Code:
$.extend($.fn.combogrid.defaults, {
  panelWidth: 400,
  idField: 'id',
  textField: 'name',
  ...
});