I have several layouts, like TabPane and VBox, and...
# tornadofx
j
I have several layouts, like TabPane and VBox, and so forth, which contain several CheckBox and other objects as children. I'd like to iterate through all the children and create a collection with each text attribute (e.g., a simple Map like "someText" -> isSelected). Do I need to specify a reference to each child to later iterate through, or can I do this implicitly? Would best practice be to use a Controller or a Model? I assume this is relatively simple, but am not sure of the best practice. I'm looking for something akin to the functionality of document.getElementsByClassName() in JS -- but I'd like to do this the best Kotlin / TornadoFX way. Thanks.