AnyLumino
API referenceastryxlayout

AccordionPanel

Astryx collapsible group with one titled section per child.

The open sections live in value: a child key when multiple is False and a list of child keys otherwise.

Attributes

attributevalue
= self._open_value(open, multiple)
attributeopen_keyslist[str]

Keys of the open sections.

Functions

constructor__init__(children=None, *, titles=None, keys=None, open=None, multiple=False, dividers=True, width=None, height=None, **props) -> None
paramchildrenChildInput
= None

Child widgets or keyed child mapping.

paramtitlesTitleInput
= None

Section titles associated with children. Defaults to the child keys.

paramkeysIterable[str] | None
= None

Stable child keys for iterable children.

paramopenstr | int | Iterable[str | int] | None
= None

Initially open section keys or indexes. Defaults to the first child when multiple is False and to no section otherwise.

parammultiplebool
= False

Whether several sections can be open at once.

paramdividersbool
= True

Whether to draw hairline dividers between sections.

paramwidthint | float | str | None
= None

Panel width.

paramheightint | float | str | None
= None

Panel height.

parampropsAny
= {}

Returns

None
funcopen_key(key_or_index) -> None

Open the section for key_or_index.

paramkey_or_indexstr | int

Returns

None
funcclose_key(key_or_index) -> None

Close the section for key_or_index.

paramkey_or_indexstr | int

Returns

None

On this page