bootstack.GroupItem#

class bootstack.GroupItem(items=<factory>, label=None, col_count=1, min_col_width=275, width=None, height=None, column=None, row=None, columnspan=1, rowspan=1, padding=8, type='group')#

Bases: object

A labeled group of fields with its own column layout, placed in a Form.

col_count: int = 1#

Number of columns within the group. Default 1.

column: int | None = None#

Zero-based grid column in the parent form. Auto-placed when None.

columnspan: int = 1#

Columns to span in the parent grid. Default 1.

height: int | None = None#

Fixed height for the group container.

items: list[FieldItem | Mapping[str, Any] | GroupItem | TabsItem]#

Child FieldItem, GroupItem, or TabsItem instances (or equivalent dicts).

label: str | None = None#

Section heading shown above the group border. No border is drawn when None.

min_col_width: int = 275#

Minimum column width in pixels.

padding: int | str | tuple[int, int] | tuple[int, int, int, int] | None = 8#

Internal padding inside the group border. Default 8.

row: int | None = None#

Zero-based grid row in the parent form. Auto-placed when None.

rowspan: int = 1#

Rows to span in the parent grid. Default 1.

type: Literal['group'] = 'group'#

Item-type discriminator. Set automatically; only needed when building items as plain dicts.

width: int | None = None#

Fixed width for the group container.