-
23 Jul 2012 3:03 AM #1
Ext.BUtton disabledClass not working
Ext.BUtton disabledClass not working
results in:Code:id: 'previousButton', cls: 'previous-button', overCls: 'previous-button-over', disabledClass: 'previous-button-disabled', disabled: true
Above code has the button disabled in css, but it custom class is 'previous-button', not 'previous-button-disabled'. if i changeCode:class="x-btn previous-button x-box-item x-btn-default-small x-item-disabled x-disabled x-btn-disabled x-btn-default-small-disabled"
class becomes 'previous-button-disabled'Code:cls: 'previous-button-disabled'
Bug?
Workaround
I can workaround using the following css:
Code:.previous-button-disabled, #previousButton.x-btn-disabled { background: url('../images/previous_disabled.png') no-repeat !important }Last edited by dr-dan; 23 Jul 2012 at 3:08 AM. Reason: add workaround
-
23 Jul 2012 12:53 PM #2
There isnt disabledClass but disabledCls
http://docs.sencha.com/ext-js/4-1/#!...fg-disabledCls
Example:
http://jsfiddle.net/yLLmX/1/
-
23 Jul 2012 2:21 PM #3
My guess is someone just updated the docs as a result of this post. It was definitely disabledClass when I was developing it this am because I thought it an anomaly compared to the other *Cls configs. The old component class appears to back it up. http://dev.sencha.com/playpen/docs/o...onent.jss.html


Reply With Quote