https://kotlinlang.org logo
#tornadofx
Title
# tornadofx
m

matthjes

01/22/2020, 6:32 PM
Hi. Is there a more "elegant" way to set the item / itemProperty of a view model manually besided using
itemProperty.value = <item>
?
r

Ruckus

01/22/2020, 7:28 PM
item = <item>
s

Spike Baylor

01/22/2020, 8:43 PM
assuming you have
var item by itemProperty
right?
m

matthjes

01/23/2020, 8:35 AM
So instead of
itemProperty.value = <item>
I can use
Copy code
var item by itemProperty
...
item = <item>
Ok, first approach seems easier, I guess...
2 Views