Hi. Is there a more "elegant" way to set the item ...
# tornadofx
m
Hi. Is there a more "elegant" way to set the item / itemProperty of a view model manually besided using
itemProperty.value = <item>
?
r
item = <item>
s
assuming you have
var item by itemProperty
right?
m
So instead of
itemProperty.value = <item>
I can use
Copy code
var item by itemProperty
...
item = <item>
Ok, first approach seems easier, I guess...