-
26 Mar 2012 10:11 PM #1
Unanswered: changing cursor type on button disabled
Unanswered: changing cursor type on button disabled
Hi I want to change the cursor type from hand to default when a button is disabled.
I wrote a cursor property -> cursor:default in style tag of button but it didnt help.
Any ideas guys ?
I found a improvement usability in ext GWT here : http://www.sencha.com/forum/showthre...d-cursor-style
Do we have something like that in extjs 4 ?
-
26 Mar 2012 10:18 PM #2Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 52
- Answers
- 29
You can set your own button "disabledCls" and use Firebug to figure out what the CSS rule should be.
http://docs.sencha.com/ext-js/4-0/#!...fg-disabledCls
-
17 Aug 2012 11:13 AM #3
Unfortunately the cursor is declared way down the chain - in fact on the span inside a button tag!? The disabledCls actually goes on the outer div containing this button and span - makes styling these buttons a really really ugly hack
Here you go:
Say you use
the css you need is:Code:disabledCls: 'disabledButton'
or override the classes generated by extCode:.disabledButton .x-btn-inner { cursor: default !important; } .disabledButton .x-btn-center { cursor: default !important; }
Code:.x-btn-disabled .x-btn-inner { cursor: default !important; } .x-btn-disabled .x-btn-center { cursor: default !important; }


Reply With Quote