PDA

View Full Version : Button pressed



Stephan123
15 Jun 2011, 6:54 AM
Hello !

I have a simple button.


...
buttons: [{
text: 'my button',
enableToggle: true,
pressed: true,
id: 'myTestButton',
handler: function (){ ... }

}]
...


When i start my app the button is pressed.
Now i look for a function to make the button unpressed.

Who has an idea ?

Your sincerly

Stephan

fay
15 Jun 2011, 7:39 AM
See the toggle() (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.Button&member=toggle) method.