ExpanderTab

fun ExpanderTab(title: String, fontSize: Int = 24, icon: Actor? = null, startsOutOpened: Boolean = true, defaultPad: Float = 10f, headerPad: Float = 10f, expanderWidth: Float = 0f, persistenceID: String? = null, onChange: () -> Unit? = null, initContent: (Table) -> Unit? = null)

Parameters

title

The header text, automatically translated.

fontSize

Size applied to header text (only)

icon

Optional icon - please use Image or IconCircleGroup

defaultPad

Padding between content and wrapper.

headerPad

Default padding for the header Table.

expanderWidth

If set initializes header width

persistenceID

If specified, the ExpanderTab will remember its open/closed state for the duration of one app run

onChange

If specified, this will be called after the visual change for a change in isOpen completes (e.g. to react to changed size)

initContent

Optional lambda with innerTable as parameter, to help initialize content.

Sources

jvm source
Link copied to clipboard