TabView
✖
TabView
Details 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 Appearance Automatic the overall appearance of the TabView BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the TabView ContentPadding True whether to shrink the margins tightly around the contents ControlPlacement {Automatic,Automatic} where to place the tabs Enabled Automatic whether the tabs are enabled or grayed out FrameMargins Automatic margins inside the overall frame ImageMargins 0 margins around the display area ImageSize All the 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 expri to be displayed, so that its overall size does not change. »
- With ImageSize->Automatic, TabView leaves space only for the expri currently being displayed.
- If any of the lbli 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 lbli in "TabViewLabel" style, which typically uses the system button font.
- The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the "TabView" and "TabViewLabel" styles in the current stylesheet.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (11)Survey of the scope of standard use cases
TabView Content (7)
Use graphics as content in TabView:

https://wolfram.com/xid/0bdpcisb2-d5wgg0

TabView can contain any expression, including Manipulate:

https://wolfram.com/xid/0bdpcisb2-fkteun

TabView can be nested:

https://wolfram.com/xid/0bdpcisb2-m1q22

Use any expression as a label:

https://wolfram.com/xid/0bdpcisb2-gmecc


https://wolfram.com/xid/0bdpcisb2-jlz7vp

Put the labels into text style:

https://wolfram.com/xid/0bdpcisb2-9fa96

Use Null to indicate a blank tab label:

https://wolfram.com/xid/0bdpcisb2-lx49i3

By default, a TabView leaves enough space to display without ever resizing:

https://wolfram.com/xid/0bdpcisb2-08vcs


https://wolfram.com/xid/0bdpcisb2-ckd43j

With ImageSize->Automatic, TabView resizes for each pane:

https://wolfram.com/xid/0bdpcisb2-pbcfsf

TabView Control (4)

https://wolfram.com/xid/0bdpcisb2-gvfye


https://wolfram.com/xid/0bdpcisb2-2nx6e

By default, the setting is based on position:

https://wolfram.com/xid/0bdpcisb2-b73o13


https://wolfram.com/xid/0bdpcisb2-damdpv

Use the {u,lbl->expr} to have be the setting:

https://wolfram.com/xid/0bdpcisb2-lwxrr8

Connect a TabView to a slider:

https://wolfram.com/xid/0bdpcisb2-jrn8w7

Use With to replace dynamically scoped variables:

https://wolfram.com/xid/0bdpcisb2-bf97wh

Options (9)Common values & functionality for each option
Alignment (1)

https://wolfram.com/xid/0bdpcisb2-h0z1


https://wolfram.com/xid/0bdpcisb2-d0dc4

Control horizontal alignment only:

https://wolfram.com/xid/0bdpcisb2-ed66g3

Control horizontal and vertical alignments:

https://wolfram.com/xid/0bdpcisb2-c49w8w

ControlPlacement (1)
Enabled (2)
FrameMargins (1)
ImageMargins (1)
ImageSize (1)
Applications (4)Sample problems that can be solved with this function
Make a TabView with pictures of Bessel functions:

https://wolfram.com/xid/0bdpcisb2-zt6g2

Show some famous cellular automata in a TabView:

https://wolfram.com/xid/0bdpcisb2-xas4w

Tab through a list of formulas:

https://wolfram.com/xid/0bdpcisb2-g69pff

Show the GDP of several countries between 1970-2005:

https://wolfram.com/xid/0bdpcisb2-8bz9bp

Properties & Relations (2)Properties of the function, and connections to other functions
Possible Issues (2)Common pitfalls and unexpected behavior
Rules are used to specify labels for tabs:

https://wolfram.com/xid/0bdpcisb2-nj6

Give labels explicitly to display rules in the content area:

https://wolfram.com/xid/0bdpcisb2-v5y

By default, the entire contents are generated before displaying the output:

https://wolfram.com/xid/0bdpcisb2-0r5pc0

https://wolfram.com/xid/0bdpcisb2-u2ee88

Use Dynamic and ImageSize->Automatic to generate the contents only when displayed:

https://wolfram.com/xid/0bdpcisb2-7mdsne

Wolfram Research (2007), TabView, Wolfram Language function, https://reference.wolfram.com/language/ref/TabView.html (updated 2008).
Text
Wolfram Research (2007), TabView, Wolfram Language function, https://reference.wolfram.com/language/ref/TabView.html (updated 2008).
Wolfram Research (2007), TabView, Wolfram Language function, https://reference.wolfram.com/language/ref/TabView.html (updated 2008).
CMS
Wolfram Language. 2007. "TabView." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/TabView.html.
Wolfram Language. 2007. "TabView." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/TabView.html.
APA
Wolfram Language. (2007). TabView. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TabView.html
Wolfram Language. (2007). TabView. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TabView.html
BibTeX
@misc{reference.wolfram_2025_tabview, author="Wolfram Research", title="{TabView}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/TabView.html}", note=[Accessed: 01-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_tabview, organization={Wolfram Research}, title={TabView}, year={2008}, url={https://reference.wolfram.com/language/ref/TabView.html}, note=[Accessed: 01-April-2025
]}