TabView[{lbl1->expr1, lbl2->expr2, ...}]
represents an object in which clicking the tab with label displays .

TabView[{lbl1->expr1, lbl2->expr2, ...}, i]
makes the i^(th) tab be the one currently selected.

TabView[{{v1, lbl1->expr1}, {v2, lbl2->expr2}, ...}, v]
associates values with successive tabs, and makes the tab with value v be the one currently selected.

TabView[{expr1, expr2, ...}]
takes the tab labels to be successive integers.

Details and OptionsDetails and Options

  • TabView[list, Dynamic[s]] takes the selected tab to be specified by the dynamically updated current value of s, with the value of s being reset if a different tab is selected.
  • The following options can be given:
  • Alignment{Automatic,Automatic}how to align objects in the display area
    AppearanceAutomaticthe overall appearance of the TabView
    BaselinePositionAutomatichow to align with a surrounding text baseline
    BaseStyle{}base style specifications for the TabView
    ControlPlacement{Automatic,Automatic}where to place the tabs
    EnabledAutomaticwhether the tabs are enabled, or grayed out
    FrameMarginsAutomaticmargins inside the overall frame
    ImageMargins0margins around the display area
    ImageSizeAllthe overall image size for the display area
    LabelStyle{}style specifications for the tab area
  • With the default option setting ImageSize->All, TabView always leaves space for the largest of the to be displayed, so that its overall size does not change. »
  • With ImageSize->Automatic, TabView leaves space only for the currently being displayed.
  • If any of the are Null, the corresponding tabs are left blank. »
  • Appearance->"Limited" specifies that only a limited number of tabs should be displayed at a time, with controls to navigate through different "pages" of tabs.
  • Appearance->{"Limited", n} specifies that only up to n tabs should be displayed at a time.
  • TabView by default displays the in style, which typically uses the system button font.
  • The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the and styles in the current stylesheet.
New in 6 | Last modified in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »