EasyUI Forum
December 08, 2025, 09:56:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: reusable options?  (Read 10998 times)
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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',
  ...
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!