<@U10EJRH2L>: The `cellFormat` function operates o...
# tornadofx
e
@Ruckus: The
cellFormat
function operates on a
ListCell
, so you're supposed to assign a value to the
text
property and possibly also to the
graphic
property of the
ListCell
. No need to use binding, since the function is called every time a cell needs refresh. The magic behind
cellFormat
is that you don't need to deal with the normal boiler plate of overriding
ListCell.updateItem
, checking if the value is blank or null or of the empty parameter is true etc. Your specific case:
cellFormat { text = it.name.value }