-
First, I love the FancyTree plugin and I think it is a very good library with amazing performance, thank you very much. I have a tree of channels, some are connected and some are disconnected, I am trying to figure out how I can utilize a property from the source data (connect = true / false) which I can define myself (it can easily be color=green / red or whatever I need), in order to set the text color of that node specifically. Any guidance will be very helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Would calling node.toggleClass("green", !node.data.connect)
node.toggleClass("red", node.data.connect) whenever you set the Also |
Beta Was this translation helpful? Give feedback.
-
Again, thank for the time, I simply added Thanks for the very quick response, it is much appreciated. |
Beta Was this translation helpful? Give feedback.
Would calling
mode.addClass("green")
orwhenever you set the
node.data.connect
property work for you?Also
extraClasses
can be set per node with the JSON response.