/**
* 重写jsonstore的属性
*/
Ext.apply(Ext.data.JsonStore.prototype, {
fields: ['valueField', 'displayField']
});
/**
* 重写CombBox的属性
*/
Ext.apply(Ext.form.ComboBox.prototype, {
// 重写下拉列表属性
displayField: 'displayField',
valueField: 'valueField',
mode: 'remote',
emptyText: '请选择',
triggerAction: 'all',
forceSelection: true,
// typeAhead: true,
selectOnFocus: true,
editable: false
});
Ext.apply(Ext.form.DateField.prototype, {
format: 'Y-m-d'
});
* 重写jsonstore的属性
*/
Ext.apply(Ext.data.JsonStore.prototype, {
fields: ['valueField', 'displayField']
});
/**
* 重写CombBox的属性
*/
Ext.apply(Ext.form.ComboBox.prototype, {
// 重写下拉列表属性
displayField: 'displayField',
valueField: 'valueField',
mode: 'remote',
emptyText: '请选择',
triggerAction: 'all',
forceSelection: true,
// typeAhead: true,
selectOnFocus: true,
editable: false
});
Ext.apply(Ext.form.DateField.prototype, {
format: 'Y-m-d'
});