Hi everyone ! According to the following snippet: ...
# tornadofx
r
Hi everyone ! According to the following snippet:
Copy code
class MainView : View("Hello TornadoFX") {
    override val root = splitpane() {
        minWidth = 1280.0
        minHeight = 720.0
        vbox {
            add(PersonListView::class)
        }
        vbox {
            add(PersonEditorView::class) // 1. VBox
        }
    }
}

class PersonEditorView : View() {
    lateinit var tabPane: TabPane

    override val root = hbox {
        // 2. Getting the parent from MainView ?
        tabpane {
            hboxConstraints { hGrow = Priority.ALWAYS }
            tabPane = this
        }
    }
}
As the
PersonEditorView
is added to the
VBox
into the
MainView
, is there a way to access in 2 the
VBox
in 1 as its
parent
?