Thursday 19 September 2013

Attach view to button , Extjs

To attach a view ( must be a floating component like window ) to a button , so that on clicking a button results a view to open attached to that button , you can use the following code inside your button click action inside your controller. i.e.

var menu= Ext.create('Main.view.MyView', {
            left: 0,
            padding: 10,
        }).showBy(button);


No comments:

Post a Comment