I am assisting in the production of a client which involves a tabbed notification system. Basically, when a tab is first created it has a certain CSS style. I am wanting to change the ID to something different whenever the notification is read. I have attempted to use the #onSelectionChangedProperty and set the ID to the new ID and it does nothing after the first time.
I wish to be able to set the style between two different styles whenever.
I believe I need to re-validate or refresh the control to fix this, but there is no such methods currently in existence. What should I do?
Edit: A temporary solution is to use #setStyle and pass the string representation of the style I want, but I would rather just be able to use #setID and keep CSS out of my class files.
Edited by: 985412 on Jan 31, 2013 12:58 PM
Yes, here is an example class with a test CSS block which still replicates the problem I have.
I am working on a basic notification system which changes the style of a button based on whether or not you have clicked the notification.
The commented out code works fine. I can toggle back and forth easily. With the CSS, after I change the ID once, it will not change again.