Module beamui.widgets.tabs

Tabbed controls.

Mostly you will use only Tabs class. Other classes are ancillary.

Synopsis

// create tab widget
auto tabs = new Tabs;
// and add tabs
// content widgets must have different non-null ids
tabs.addTab(new Label("1st tab content"d).setID("tab1"), "Tab 1");
tabs.addTab(new Label("2st tab content"d).setID("tab2"), "Tab 2");
// tab widget consists of two parts: tabControl and tabHost
tabs.tabHost.style.padding = 12;
tabs.tabHost.style.backgroundColor = 0xbbbbbb;

Import line

import beamui.widgets.tabs;

Classes

NameDescription
PageStack
PageStackOf
TabBar
TabContent Container for tab panels
TabItem Common tab header widget. It may have a title, an icon, and a close button.
TabItemBase Abstract tab header widget
TabPane
Tabs

Aliases

NameTypeDescription
TabPair WidgetPair!(beamui.widgets.tabs.TabItemBase,beamui.widgets.widget.Widget)