Rate this Example


JAVA SCRIPT CODE

Ext.require('*');

Ext.setup({
    onReady: function() {


        var button1 = Ext.create('Ext.Button', {
            text: 'Button1',
            listeners: {
                tap: function() {
                    Ext.Msg.alert("TapButton1");
                },
                painted: function() {
                    alert("ShowButton1");
                }


            }
        });




        var panel = Ext.create("Ext.Panel", {
            layout: 'vbox',
            fullscreen: true,
            items: [button1],
            listeners: {
                show: function() {
                    alert("showpanel");
                }
            }
        });




        Ext.Viewport.add(panel);
    }
});

Related Products


Random Examples`