Abrir ext.panel onclick, open ext.pnale onclick event

Abrir ext.panel onclick, open ext.pnale onclick event

Ext.onReady(function(){
    var mypanel = new Ext.Panel({
        title: 'My Panel',
        collapsible:true,
        width:500,
        html: Ext.example.bogusMarkup
    });
    var myButton = Ext.get('myHrefIdClick');
        myButton.on('click', function(){
            //render the panel to id -> 'container'
            mypanel.render('container');
    });
}); //onReady Close

<h1>onClick of a link opens up a Panel</h1>
<a href="#" id="myHrefIdClick">Click Here</a>
<div id="container">
</div>
 
 
Abrir ext.panel onclick, open ext.pnale onclick event
Añadir evento on click a un enlace en extjs

0 pensamientos:

Post a Comment

feedback!