bootstack.TabsItem#

class bootstack.TabsItem(tabs=<factory>, label=None, width=None, height=None, column=None, row=None, columnspan=1, rowspan=1, type='tabs')#

Bases: object

A tab container holding one or more TabItem entries, placed in a Form.

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 tab container.

label: str | None = None#

Optional heading shown above the tab bar.

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.

tabs: list[TabItem | Mapping[str, Any]]#

TabItem instances (or equivalent dicts) defining each tab.

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

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

width: int | None = None#

Fixed width for the tab container.