-
20 Aug 2012 7:52 AM #1
Answered: segmented button color change of pressed button
Answered: segmented button color change of pressed button
Hi,
I am new to sencha. Kindly bear with me.
I have a segmented button component with two buttons.
I want to change color of the pressed button to something other than default behavior .
Please advice.
-
Best Answer Posted by sword-it
Hi,
you may use 'pressedCls' with your button.
it will apply styles defined within your css class to the button when it is pressed.
for more info, check this:- http://docs.sencha.com/touch/1-1/#!/api/Ext.Button-cfg-pressedClsCode:{ xtype: 'button', pressedCls : 'yourPressedButton', ... }
-
20 Aug 2012 11:33 PM #2Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 77
- Answers
- 124
Hi,
you may use 'pressedCls' with your button.
it will apply styles defined within your css class to the button when it is pressed.
for more info, check this:- http://docs.sencha.com/touch/1-1/#!/api/Ext.Button-cfg-pressedClsCode:{ xtype: 'button', pressedCls : 'yourPressedButton', ... }
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
21 Aug 2012 1:07 AM #3
Thanks for the hint.
it worked for me in the following way
and in my style.cssCode:xtype:'button', cls: 'button_pressed',
Code:.button_pressed.x-button-pressed{ color: #148DEA; background:#148DEA !important; }
-
17 Dec 2012 2:27 AM #4
Segmented Button Border Style
Segmented Button Border Style
Hello friends,
Default border of segmented button is ROUNDED.
Can anyone tell me how can I make border of segmented button "square".
Thanks in advance....
-
22 Apr 2013 1:43 AM #5
try using 'border-radius:0' in the style config of your button
-
22 Apr 2013 1:54 AM #6


Reply With Quote