layout class
Organizes its children into cells in a regular grid.
Methods¶
__init__() ¶
__init__(
columns="1 1",
gap="0.5rem",
id=None,
properties=None,
class_name=None,
hover_text=None,
) -> None
Create a new layout
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
columns |
str
|
The list of weights for each column.
The creation of multiple same size columns can be simplified by using the multiply sign eg. "5*1" is equivalent to "1 1 1 1 1". |
1 1
|
gap |
str
|
The size of the gap between the columns. |
0.5rem
|
id |
str
|
The identifier that is assigned to the rendered HTML component. |
None
|
properties |
dict[str, Any]
|
Bound to a dictionary that contains additional properties for this element. |
None
|
class_name |
str
|
The list of CSS class names that are associated with the generated HTML Element. |
None
|
hover_text |
str
|
The information that is displayed when the user hovers over this element. |
None
|