CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

add e new readonly style only for some components

Questions & Answers about IWCGJQuery Suite.

by scoluccia » 23 Jan 2016 09:55

Hi,
there are some components that not support readonly property like radiogroup, checkbox, combobox, so my idea is to set disable= true but set a new stile like enabled, so the component does not respond to the user input but it remains still visible
I've added in css theme after the line
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }

this new style
.ui-state-disabledro, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabledro { opacity: 1; filter:Alpha(Opacity=100); background-image: none; }

then I write in css property of the radiogroupex component 'ui-state-disabledro' and work fine but this makes other problems:
- when I disabled the component the style ui-state-disabled become like ui-state-disabledro so the label are black and not grey
- ui-state-disabledro make several componenst enabled, also if they are disabled, like menu items.

The question is how can I create a new style that allow this behaviour?
Thanks in advance
scoluccia
 
Posts: 61
Joined: 11 Mar 2015 15:10

by Alexander Bulei » 25 Jan 2016 10:07

Hi scoluccia,

Try to use the

Code: Select all
!important


in css rule, to force to override the previous settings:

opacity: 1 !important;


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to Q & A

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.