Skip to content Skip to sidebar Skip to footer

Button Click Event Ext Js

I have the simple form: myForm = new Ext.form.FormPanel({ width:'100%', frame:false, items: [ new Ext.form.TextArea({ id:'notes', name:

Solution 1:

You either need

a) The handler option (a click shortcut)

newExt.Button({
    handler: function(){ 
        // ....
    }
});

b) Event listeners need to be registered in in a listeners block, so

newExt.Button({
    listeners: {
        click: function(){
            // ...
        }
    }
});

A) is preferred.

Post a Comment for "Button Click Event Ext Js"