AnyLumino
API referenceastryxlayout

StackedPanel

Astryx panel that shows one selected child at a time.

A child mounts the first time it is selected and stays mounted, hidden, afterwards, so switching back keeps its state.

Attributes

attributeselected_index
= t.Int(0).tag(sync=True)

Functions

constructor__init__(children=None, *, titles=None, keys=None, selected_index=0, width=None, height=None, **props) -> None
paramchildrenChildInput
= None

Child widgets or keyed child mapping.

paramtitlesTitleInput
= None

Optional labels associated with children.

paramkeysIterable[str] | None
= None

Stable child keys for iterable children.

paramselected_indexint
= 0

Initially visible child index.

paramwidthint | float | str | None
= None

Panel width.

paramheightint | float | str | None
= None

Panel height.

parampropsAny
= {}

Returns

None
funcselect(index) -> None

Show the child at index.

paramindexint

Returns

None

On this page