PDA

View Full Version : Ext.Button "pressed" style



ter
6 Jun 2007, 1:02 AM
Missing parts for button sprite and "pressed" state.
file btn-sprite.gif:
http://terart.net.ua/others/post/btn-sprite.gif

css:

.x-btn-pressed .x-btn-left{
background-position:0 -210px;
}
.x-btn-pressed .x-btn-right{
background-position:0 -231px;
}
.x-btn-pressed .x-btn-center{
background-position:0 -252px;
}

So construction

var Btn = new Ext.Button('show-btn', {
text : 'Button',
pressed: true
});
working correct.