PDA

View Full Version : Disabled container



sencha-dev2
25 Sep 2012, 4:25 AM
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



disabled: true,
disabledCls: '' // I also tried disabledCls: 'x-container'


The container still looks disabled. How can I do ?

Thanks for help

sword-it
25 Sep 2012, 5:35 AM
Hi dev2,

Try to over ride CSS class-


.x-item-disabled {
opacity: 1;
}
.x-mask {
background: none !important;
}



See sample working example - http://jsfiddle.net/rEGyt/

sencha-dev2
25 Sep 2012, 6:05 AM
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 ?

sword-it
25 Sep 2012, 6:09 AM
You can use disabledCls config to give "opacity: 1" for only selected item .

sencha-dev2
25 Sep 2012, 6:39 AM
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...