Say I have a TreeView of items that have (JavaFX-)...
# tornadofx
a
Say I have a TreeView of items that have (JavaFX-)properties
text:String
and
status:ValidationStatus
(UNKNOWN/VALID/INVALID/MIXED) And I want to render a tree cell with its text and give it a status-dependent class like
.validataion-unknown
And I can do it with
Copy code
cellFormat { /*this: TreeCell<MyItem>, it: MyItem ->*/
    text = it.text
    addClass(".validataion-${it.status.name,toLowerCase()}")
}