accordionPane

fun accordionPane(text: String, block: TitledPane.() -> Unit? = null): TitledPane

Adds a TitledPane, whose toggleGroup is set. This makes it behave like JavaFX's Accordion control, i.e. only one TitlePane is expanded at any time.