Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    May 2011
    Location
    Florida, USA
    Posts
    1
    Vote Rating
    0
    ptbrow is on a distinguished road

      0  

    Default 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.

  2. #2
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    58
    Vote Rating
    1
    mjcee is on a distinguished road

      0  

    Default


    Did you ever get the twin trigger field to work in EXT 4?

  3. #3
    Sencha User
    Join Date
    May 2012
    Location
    Ukraine
    Posts
    23
    Vote Rating
    0
    ralfius is on a distinguished road

      0  

    Default 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
        }
    });

Thread Participants: 2