cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate CSS Class for Crosstabs and Buttons in Design Studio 1.6

former_member590980
Discoverer
0 Kudos
159

Hi all,

I'm new to Design Studio so apologies in advance if this is a very basic question.

At the moment I'm building an application where I want the themes to change at the click of a button. I'm doing this by assigning new CSS classes to each component when this button is clicked. However, I'm struggling to change the theme on the crosstabs and buttons as I'm unsure how to assign a new CSS class that is only activated when the button is clicked without overwriting the CSS that is already in place. Is there a way to get around this that I'm not seeing?

Thanks very much in advance!

View Entire Topic
howsy
Explorer

Hey Kate,

to apply multiple CSS-Classes you can simply concatenate your classes.

To realize a toggle, you can do an if-clause

if pressed - classes = "class1 class2"
else - classes = "class1"


The "standard" CSS Classes of the Crosstab, which you haven't changed, will remain.

Regards,
Chris