1. #1
    Sencha Premium Member
    Join Date
    Jun 2007
    Location
    France
    Posts
    56
    Vote Rating
    2
    pbaccari is on a distinguished road

      0  

    Default How to change CSS of textField

    How to change CSS of textField


    Hello,

    I want to put a data of a store into in a part of my page normaly, like a simple text.
    I try with a disabled textField and it's work fine.

    So i would like to change the CSS of the textField (with config option "disableClass"), but it don't work.

    For test, i just set a CSS like this :
    .myTextField {
    color:black;
    a background ...
    }


    Best regards.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Bah
    Posts
    434
    Vote Rating
    0
    efege is on a distinguished road

      0  

    Default


    Did you use disableClass (wrong name) or disabledClass (correct name)?
    Fernando G

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2007
    Location
    France
    Posts
    56
    Vote Rating
    2
    pbaccari is on a distinguished road

      0  

    Default


    I use "disableClass", like it's writen in doc :
    http://extjs.com/deploy/ext/docs/out...g-disableClass

    Is there an error in doc ?

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Bah
    Posts
    434
    Vote Rating
    0
    efege is on a distinguished road

      0  

    Default


    Sorry, I was checking the Ext 2.0 docs, where the property is called disabledClass.

    Could you please post just the relevant portion of your code?
    Fernando G

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    Bah
    Posts
    434
    Vote Rating
    0
    efege is on a distinguished road

      0  

    Default


    Well, yes, it is a documentation bug. Check the source code, the property is in fact called disabledClass in Ext 1.1.1 too:

    http://extjs.com/deploy/ext/docs/out...onent.jss.html
    Fernando G

  6. #6
    Sencha Premium Member
    Join Date
    Jun 2007
    Location
    France
    Posts
    56
    Vote Rating
    2
    pbaccari is on a distinguished road

      0  

    Default


    Hello,

    It's OK : with "disabledClass", it's work fine.

    Thanks.
    Best regards.

Thread Participants: 1