Supported Layout Widget Types
Below is a comprehensive list of supported layout widget types.Row Layout
Row Layout
The Row layout widget arranges widgets horizontally in a single row.
Widget Parameters
key
: string optional unique identifier for the widgetitems
: list[BaseWidget] list of widgets to arrange horizontallyColumn Layout
Column Layout
The Column layout widget arranges widgets vertically in a single column.
Widget Parameters
key
: string optional unique identifier for the widgetitems
: list[BaseWidget] list of widgets to arrange verticallyGrid Layout
Grid Layout
The Grid layout widget allows you to create a grid-based layout where widgets can span multiple rows and columns.
Widget Parameters
key
: string optional unique identifier for the widgetcolumns
: int number of columns in the gridrows
: int optional number of rows in the grid. If not specified, rows will be created as needed.Grid Item Parameters
When adding items to a grid using theadd()
method:item
: BaseWidget the widget to add to the gridcol_span
: int number of columns the item should span (default: 1)row_span
: int number of rows the item should span (default: 1)