Results 1 to 5 of 5

Thread: Disabled container

  1. #1
    Sencha Premium Member sencha-dev2's Avatar
    Join Date
    Jun 2012
    Location
    France
    Posts
    59
    Answers
    2
    Vote Rating
    0
      0  

    Question Answered: Disabled container

    Hi, I disable a container to enforce the user to click on modify button before changing content, but I don't want the container style to look disabled (hard to read when so). I tried to set

    Code:
    disabled: true,
    disabledCls: '' // I also tried disabledCls: 'x-container'
    The container still looks disabled. How can I do ?

    Thanks for help

  2. You can use disabledCls config to give "opacity: 1" for only selected item .

  3. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    91
      0  

    Default

    Hi dev2,

    Try to over ride CSS class-
    Code:
    .x-item-disabled {
        opacity: 1;  
    }
    .x-mask {
        background: none !important;
    }
    See sample working example - http://jsfiddle.net/rEGyt/
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  4. #3
    Sencha Premium Member sencha-dev2's Avatar
    Join Date
    Jun 2012
    Location
    France
    Posts
    59
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Thanks for help, though I want this to happen only in this case, so how can I configure it without applying changes on all disabled items ?

  5. #4
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    91
      0  

    Default

    You can use disabledCls config to give "opacity: 1" for only selected item .
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  6. #5
    Sencha Premium Member sencha-dev2's Avatar
    Join Date
    Jun 2012
    Location
    France
    Posts
    59
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Sorry again, I just can find out how to do this... I'm not really used to this framework, so some things apparently simple can be hard for me... Could you give me an example ?

    The sample you provided did not help me...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •