Code:
id: 'previousButton',
cls: 'previous-button',
overCls: 'previous-button-over',
disabledClass: 'previous-button-disabled',
disabled: true
results in:
Code:
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"
Above code has the button disabled in css, but it custom class is 'previous-button', not 'previous-button-disabled'. if i change
Code:
cls: 'previous-button-disabled'
class becomes '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 }