<@U78L28DMX> if you mean I should have used namePr...
# tornadofx
d
@amanda.hinchman-dominguez if you mean I should have used nameProperty not name, I think you're right! Changing the bindChildren function to
shapeItem -> button(shapeItem.nameProperty)
gives no error and does render two buttons...however the labels don't show on the buttons, leading me to believe I have to init my ShapeItem model after setting fields in the constructor. Strange though, as the examples I was looking at (https://stackoverflow.com/questions/47802015/drawing-lines-from-viewmodel-tornadofx and https://stackoverflow.com/questions/47681250/binding-a-view-to-a-changing-controller-property) seemed to imply you could use regular properties on each item in the list and they didn't have to be JavaFX properties.
a
That is true - tornadofx has easier properties to deal with, if you look at documentation, buttons with text happen as easily as
button("Hello!")