Skip to content

ExpansionPanel

Examples#

See these.

Inherits: LayoutControl, AdaptiveControl

A material expansion panel. It can either be expanded or collapsed. Its body is only visible when it is expanded.

Properties

Properties#

bgcolor #

bgcolor: ColorValue | None = None

The background color of the panel.

can_tap_header #

can_tap_header: bool = False

If True, tapping on the panel's header will expand or collapse it. Defaults to False.

content #

content: Control | None = None

The control to be found in the body of the ExpansionPanel. It is displayed below the header when the panel is expanded.

If this property is None, the ExpansionPanel will have a placeholder Text as content.

expanded #

expanded: bool = False

Whether expanded(True) or collapsed(False). Defaults to False.

header #

header: Control | None = None

The control to be found in the header of the ExpansionPanel. If can_tap_header is True, tapping on the header will expand or collapse the panel.

If this property is None, the ExpansionPanel will have a placeholder Text as header.

highlight_color #

highlight_color: ColorValue | None = None

TBD

splash_color #

splash_color: ColorValue | None = None

TBD