pane class
A side pane.
Methods¶
__init__() ¶
__init__(
open=False,
on_close=None,
anchor="left",
persistent=False,
width="30vw",
height="30vh",
show_button=False,
page=None,
partial=None,
on_change=None,
active=True,
id=None,
properties=None,
class_name=None,
hover_text=None,
) -> None
Create a new pane element.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
open
|
dynamic(bool)
|
If True, this pane is visible on the page. |
False
|
on_close
|
Union[str, Callable]
|
A function or the name of a function that is triggered when this pane is closed (if the user clicks outside of it or presses the Esc key).
If this property is not set, no function is called when this pane is closed. |
None
|
anchor
|
str
|
Anchor side of the pane. |
left
|
persistent
|
bool
|
If False, the pane covers the page where it appeared and disappears if the user clicks in the page. |
False
|
width
|
str
|
Width of the pane, in CSS units. |
30vw
|
height
|
str
|
Height of this pane, in CSS units. |
30vh
|
show_button
|
bool
|
If True and when the pane is closed, a button allowing the pane to be opened is shown. |
False
|
page
|
str
|
The page name to show as the content of the block. |
None
|
partial
|
Partial
|
A Partial object that holds the content of the block. |
None
|
on_change
|
Union[str, Callable]
|
A function or the name of a function that is triggered when the value changes.
|
None
|
active
|
dynamic(bool)
|
Indicates if this element is active. |
True
|
id
|
str
|
The identifier assigned to the rendered HTML component. |
None
|
properties
|
dict[str, Any]
|
A dictionary of additional properties that can be set to the element. |
None
|
class_name
|
dynamic(str)
|
A space-separated list of CSS class names to be applied to the generated HTML element. |
None
|
hover_text
|
dynamic(str)
|
The text that is displayed when the user hovers over the element. |
None
|