UI module

tab

procedure · 1 overloadsince 0.31.0Source

One tab in a tab_bar, drawn selected when active.

tab :: (
    text: string,
    active: bool,
    options: Tab_Options = .{},
    loc := #caller_location
) -> Tab_Result

One tab in a tab_bar, drawn selected when active.

Parameters

text: string
the tab's title. It is copied for the frame.
active: bool
whether this is the selected tab.
options: Tab_Options
whether it shows an unsaved dot or a close button.
loc := #caller_location
the call site. It identifies the widget from one frame to the next, so leave the default.

Returns

See also