PDA

View Full Version : Replacement for Button classes 'x-btn-right' and 'x-btn-left' in Extjs 4



Nandha kumar
6 Mar 2014, 11:02 PM
My requierment is to apply the sprite image for button's backgound image by center , left and right like as mentioned below;
.tmp-green-button .x-btn-center {
text-align:center;
cursor:pointer;
background:transparent url(../images/btn-big-sprite-green.gif) repeat-x scroll 0pt -172px;
height:86px;
}
.tmp-green-button .x-btn-left {
cursor:pointer;
background:transparent url(../images/btn-big-sprite-green.gif) no-repeat;
height:86px;
width: 5px;
}
.tmp-green-button .x-btn-right {
cursor:pointer;
background:transparent url(../btn-big-sprite-green.gif) no-repeat scroll 0pt -86px;
height:86px;
width: 5px;
}
But now in Extjs 4 i dont find any replace for the classes for buttons or how to apply sprite image for button at either side and center.
Can anyone help me here? It is really eating my time that too, no progress atall.

scottmartin
7 Mar 2014, 6:50 AM
Duplicate post:
http://www.sencha.com/forum/showthread.php?282442

Nandha kumar
9 Mar 2014, 10:13 PM
Could you please help me out on this?