[Control] tabSet

Part of: mobl::ui::generic

Arguments:

  • tabs : tabs : [(String, String, Control)] an array of tuples, each tuple representing a tab. The first element is the tab's title, the second the icon to use (currently ignored), the third the control (no arguments).
  • activeTab : String (optional): the title of the selected tab, can be used to manipulate the selected tab.

A tab set control.

Example:

control tab1() {
  header("My first tab")
}
control tab2() {
  header("My second tab")
}
control tab3() {
  header("My third tab")
}
tabSet([("Tab 1", "", tab1), ("Tab 2", "", tab2),
        ("Tab 3", "", tab3)])
// or:
tabSet([("Tab 1", "", tab1), ("Tab 2", "", tab2),
        ("Tab 3", "", tab3)], activeTab="Tab 3")
mobl/ui/generic/tabset.txt · Last modified: 2013/10/01 02:29 (external edit)