PDA

View Full Version : Ext.Button missing CSS style for pressed state?



papasi
13 Jun 2007, 9:25 PM
Hi,

I notice that in the Ext.Button class, if enableToggle is true, it will add a class to the dom element


if(this.pressed){
this.el.addClass("x-btn-pressed");
}


I verified that it is the case with firebug. However, there is no difference in visual appearance for pressed/unpressed state.

This kind of confuses the user.

Is there something that I missed (maybe it is my responsibility to style it?)

Thanks.



<div id='btn1'></div>
<div id='btn2'></div>




var btn1, btn2;
Ext.onReady(function(){
btn1 = new Ext.Button('btn1',
{enableToggle: true,
text:'choice 1',
toggleGroup: 'a',
pressed: true});

btn2 = new Ext.Button('btn2',
{enableToggle: true,
text:'choice 2',
toggleGroup: 'a',
pressed: false});
})