PDA

View Full Version : onClick explanation needed.



StevenInc
26 Jun 2010, 1:53 PM
Can some explain to me what this snippet of code is doing?
What is the "render:" parameter.

Thanks



listeners: {
render: function(c){
c.getEl().on('click', function(){
alert('you click on me.');
}, c);
}
}

Animal
26 Jun 2010, 1:58 PM
http://www.sencha.com/deploy/dev/docs/?class=Ext.Component

Click the "Events" button, and see "render"

StevenInc
27 Jun 2010, 7:28 AM
Thanks Animal : )