Created
August 1, 2018 07:32
-
-
Save jenswittmann/d7f178c58c73fff8e01fb1fd86d83c79 to your computer and use it in GitHub Desktop.
MODX Collections update TV from grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
collections.combo.TVNAME = function(config) { | |
config = config || {}; | |
Ext.applyIf(config,{ | |
store: new Ext.data.SimpleStore({ | |
fields: ['v'] | |
,data: [ | |
['val1'], | |
['val2'], | |
['val3'] | |
] | |
}) | |
,displayField: 'v' | |
,valueField: 'v' | |
,mode: 'local' | |
,value: 'original' | |
,triggerAction: 'all' | |
,editable: false | |
,selectOnFocus: false | |
,preventRender: true | |
,forceSelection: true | |
,enableKeyEvents: true | |
}); | |
collections.combo.TVNAME.superclass.constructor.call(this,config); | |
}; | |
Ext.extend(collections.combo.TVNAME,MODx.combo.ComboBox); | |
Ext.reg('collections-combo-TVNAME',collections.combo.TVNAME); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No perfect at all, but for now it works for me :)