This content has been marked as final. Show 4 replies
Calling Node#setId(String) will cause CSS to be reapplied. Do you have a small example that shows the problem?
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.
Hi. You have:1 person found this helpful
Each node in the scene graph should have a unique id.
tabA.setId("unread"); tabB.setId("unread"); tabC.setId("unread");
Thank you for that, I was not aware of that. Is there another process I could implements which would yield the results I am looking for?