-
12 Jul 2011 7:20 AM #1
Ext 4 Twin Trigger?
Ext 4 Twin Trigger?
Does anybody have an example of a twin trigger component using EXT JS 4?
I'm working on upgrading an existing application from EXT JS 3.x and have been trying to figure this out by extending a combo box and using the thread: http://www.sencha.com/forum/showthre...rm.ComboBoxAdd, but I'm fairly new to EXT JS and am not really sure what I need.
Any help would be very welcome.
Thanks,
Paul.
-
22 Apr 2012 4:54 PM #2
Did you ever get the twin trigger field to work in EXT 4?
-
3 Dec 2012 5:38 AM #3
Trigger with 2 buttons
Trigger with 2 buttons
You can use simple Ext.form.field.Trigger and it's derived classes (e.g. comboboxes). Here is an example of trigger with 2 button:
Code:Ext.define('MyTrigger',{ extend: 'Ext.form.field.Trigger', trigger1Cls: 'x-form-form-trigger', trigger2Cls: 'x-form-lookup-trigger', onTrigger1Click: function(){ //handler of first trigger button click }, onTrigger2Click: function(){ //handler of second trigger button click } });


Reply With Quote