Skip to content

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.
For example, "1 2" creates a 2 column grid:

  • 1fr
  • 2fr

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
dynamic

The list of CSS class names that are associated with the generated HTML Element.
These class names are added to the default taipy-layout class name.

None
hover_text str
dynamic

The information that is displayed when the user hovers over this element.

None