Module dcanvas.widgets.tabs

Declaration of tabbed view controls.

TabItemWidget - single tab header in tab control TabWidget TabHost TabControl

Synopsis

import dcanvas.widgets.tabs;

// Minimal usage with TabWidget (recommended)
TabWidget tabs = new TabWidget("myTabs");
tabs.addTab(new Button().text("Content 1"d), "Tab 1"d);
tabs.addTab(new Button().text("Content 2"d), "Tab 2"d);

// Minimal usage with TabHost + TabControl (manual wiring)
TabHost tabHost = new TabHost("host");
TabControl tabControl = new TabControl("control");
tabHost.tabControl(tabControl);
tabHost.addTab(new Button().text("Content"d), "Label"d);

Interfaces

NameDescription
PopupMenuHandler
TabCloseHandler tab close button pressed handler
TabHandler current tab is changed handler

Classes

NameDescription
TabControl tab header - tab labels, with optional More button
TabHost container for widgets controlled by TabControl
TabItem tab item metadata
TabItemList tab item list helper class
TabItemWidget tab item widget - to show tab header
TabWidget compound widget - contains from TabControl widget (tabs header) and TabHost (content pages)