expandable class
Displays its child elements in a collapsible area.
Methods¶
__init__() ¶
__init__(
title=None,
expanded=True,
page=None,
partial=None,
id=None,
properties=None,
class_name=None,
hover_text=None,
on_change=None,
) -> None
Create a new expandable
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
str
|
Title of the expandable block. |
None
|
|
bool
|
If True, the block is expanded, and the content is displayed. |
True
|
|
str
|
The page name to show as the content of the block. |
None
|
|
Partial
|
A Partial object that holds the content of the block. |
None
|
|
str
|
The identifier assigned to the rendered HTML component. |
None
|
|
dict[str, Any]
|
A dictionary of additional properties that can be set to the element. |
None
|
|
str
|
A space-separated list of CSS class names to be applied to the generated HTML element. |
None
|
|
str
|
The text that is displayed when the user hovers over the element. |
None
|
|
Union[str, Callable]
|
A function or the name of a function that is triggered when the value changes.
|
None
|