1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    82
    Vote Rating
    1
    dr-dan is on a distinguished road

      0  

    Default Ext.BUtton disabledClass not working

    Ext.BUtton disabledClass not working


    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 }
    Last edited by dr-dan; 23 Jul 2012 at 3:08 AM. Reason: add workaround

  2. #2
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    455
    Vote Rating
    21
    Zdeno will become famous soon enough Zdeno will become famous soon enough

      0  

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    82
    Vote Rating
    1
    dr-dan is on a distinguished road

      0  

    Default


    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

Thread Participants: 1

Tags for this Thread