-
I want to colour the text of a Jstree node based either on the id or any other field in the source Mysql table. My jstree gets its data from a mysql table with 3 fields, here is the table structure and data with just one record: Field names are: id, notabledate, parent_id Data for this record is: red-68256170069 2021-04-19 # Here is the code for the tree:
The tree is built ok, and looks like this: ☐ 2021-04-19 ☐ 2021-04-18 What I what to do is use the prefix in the id (ie red, green etc) to cause the text of the node (a date eg 2021-04-18) to be coloured. So for example the date 2021-04-19 would have the text colour red. Any help appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Using CSS will be fastest (and easiest):
|
Beta Was this translation helpful? Give feedback.
Using CSS will be fastest (and easiest):