Page 1 of 1

Collapsible List Background Color Problem

Posted: Wed Dec 04, 2013 7:39 am
by m z

Not sure why I can't get the background color of my collapsible list to change. I found that this call does change color:

Appery('mcbEquipment').style.backgroundColor='green';

but I get the error:

Uncaught TypeError: Cannot set property 'backgroundColor' of undefined

This call does not change any background color:

Appery('mcbEquipment').css( 'background-color' , 'green');

I placed this line of code in the "expand" event for the collapsible block element mcbEquipment.

And for the code that does change the color, it is only changed when the list is expanded. Once I collapse the block, it goes back to the default color.


Collapsible List Background Color Problem

Posted: Wed Dec 04, 2013 8:58 am
by Maryna Brodina

Hello! On Collapse event of Collapsible block component add the following code pre$(this).find(".ui-collapsible-heading-toggle").css( 'background' , ''); /pre on Expand event add this code pre$(this).find(".ui-collapsible-heading-toggle").css( 'background' , 'green');/pre