Threaded View

  1. #1
    Sencha User
    Join Date
    Jul 2007
    Posts
    50
    Vote Rating
    0
    olakara is on a distinguished road

      0  

    Exclamation Answered: Disable / Enable a trigger in triggerfield

    Answered: Disable / Enable a trigger in triggerfield


    I have a trigger field as follows:

    Code:
    xtype: 'triggerfield',
    emptyText: 'click the trigger',
    trigger1Cls:'x-form-search-trigger',
    trigger2Cls:'x-form-view-trigger',
    allowBlank: false,
    onTrigger1Click : function() {
    	// action for search
    },
    onTrigger2Click : function() {
    	// action for dropdown
    }
    Now, in my form I have a condition where-in I need to disable the search trigger (trigger1Cls).. how do I disable the specific trigger alone and later enable it?

  2. Relative to a combo:

    var c = new Ext.form.field.ComboBox({
    renderTo : Ext.getBody(),
    store : ['blah','blah blah']
    });
    c.triggerEl.elements[0].addCls('x-item-disabled')

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar