I wonder if we should improve docking support in T...
# tornadofx
e
I wonder if we should improve docking support in TornadoFX. Some people get confused about how to add a View or Fragment to an existing Parent, and even though you can do
parent += myView
, which is equal to the explicit
parent.children.add(myView.root)
, you might still want to keep track of what View is represented by a specific child. The View of a component is available as
node.properties["tornadofx.uicomponent"]
, so it really is not hard, but I wonder if we can do better. A specialised docking layout where you can dock View and Fragment directly maybe, or maybe just add an extension function to Parent, so that you can list all Views, something like
val Parent.uicomponents: List<UIComponent>
? Any ideas or thoughts?