To fetch the button status
The btnPressed contains boolean value
To make it pressed programmatically you can use toggle function
This function changes the pressed state of the button
Suppose we want that if its pressed we want to un-press it
Ref 1
Ref 2
var btnPressed = Ext.getCmp("#elementId").pressed;
The btnPressed contains boolean value
To make it pressed programmatically you can use toggle function
Ext.getCmp("#elementId").toggle();
This function changes the pressed state of the button
Suppose we want that if its pressed we want to un-press it
if(btnPressed)
{
Ext.getCmp("#elementId").toggle();
}
Ref 1
Ref 2
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai
ReplyDelete