tornadofx / tornadofx / javafx.event.EventTarget / bindComponents

bindComponents

inline fun <reified T> EventTarget.bindComponents(sourceList: ObservableList<T>, noinline converter: (T) -> UIComponent): ListConversionListener<T, Node>

Bind the children of this Layout node to the given observable list of items by converting them into UIComponents via the given converter function. Changes to the source list will be reflected in the children list of this layout node.