({{, (RefLink[MenuView, paclet:ref/MenuView])[{(Subscript[lbl, 1])->(Subscript[expr, 1]),(Subscript[lbl, 2])->(Subscript[expr, 2]),…}] 
represents an object in which selecting the menu item with label (Subscript[lbl, i]) displays (Subscript[expr, i]). }, {, (RefLink[MenuView, paclet:ref/MenuView])[{(Subscript[lbl, 1])->(Subscript[expr, 1]),(Subscript[lbl, 2])->(Subscript[expr, 2]),…},i] 
makes the i(^th) item be the one currently selected.}, {, (RefLink[MenuView, paclet:ref/MenuView])[{{(Subscript[v, 1]),(Subscript[lbl, 1])->(Subscript[expr, 1])},{(Subscript[v, 2]),(Subscript[lbl, 2])->(Subscript[expr, 2])},…},v]
associates values (Subscript[v, i]) with successive menu items, and makes the item with value v be the one currently selected. }, {, (RefLink[MenuView, paclet:ref/MenuView])[{(Subscript[expr, 1]),(Subscript[expr, 2]),…}] 
takes the menu items' labels to be successive integers.}})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[MenuView, paclet:ref/MenuView])[list,(RefLink[Dynamic, paclet:ref/Dynamic])[s]] takes the selected menu item to be specified by the dynamically updated current value of s, with the value of s being reset if a different menu item is selected.

The following options can be given:

With the default option setting (RefLink[ImageSize, paclet:ref/ImageSize])->(RefLink[All, paclet:ref/All]), (RefLink[MenuView, paclet:ref/MenuView]) always leaves space for the largest of the (Subscript[expr, i]) to be displayed, so that its overall size does not change.

With (RefLink[ImageSize, paclet:ref/ImageSize])->(RefLink[Automatic, paclet:ref/Automatic]), (RefLink[MenuView, paclet:ref/MenuView]) leaves space only for the (Subscript[expr, i]) currently being displayed.

If any of the (Subscript[lbl, i]) are (RefLink[Null, paclet:ref/Null]), the corresponding menu items are left blank.

(RefLink[Item, paclet:ref/Item]) can be used to give style specifications that apply throughout a menu item.

(RefLink[MenuView, paclet:ref/MenuView]) by default displays the (Subscript[lbl, i]) in "MenuView" style, which typically uses the system menu font.

The settings for (RefLink[BaseStyle, paclet:ref/BaseStyle]) and (RefLink[LabelStyle, paclet:ref/LabelStyle]) are appended to the default styles typically given by the "MenuView" and "MenuViewLabel" styles in the current stylesheet.

OpenersPrimaryExamplesSection(Spacer1)Examples  (20)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Select between graphics using a menu:

MenuView[Table[Plot[Sin[n x],{x,0,10}],{n,5}]]

Include labels:

MenuView[{"I"->1,"II"->2,"III"->3,"IV"->4,"V"->5},4]

OpenersExampleSection1(Spacer1)Scope  (7)

OpenersExampleSubsection0(Spacer1)MenuView Content  (4)

Use graphics as content in (RefLink[MenuView, paclet:ref/MenuView]):

MenuView[Table[Plot[Sin[n x],{x,0,10}],{n,5}]]

(RefLink[MenuView, paclet:ref/MenuView]) can contain any expression, including (RefLink[Manipulate, paclet:ref/Manipulate]):

MenuView[Function[i,Manipulate[Row[{(x+j)^i," == ",Expand[(x+j)^i]}],{j,1,5,1}]]/@Range[5]]

(RefLink[MenuView, paclet:ref/MenuView]) can be nested:

MenuView[{MenuView[{a,b,c}],MenuView[{x,y}]}]

By default, (RefLink[MenuView, paclet:ref/MenuView]) leaves enough space to display without ever resizing:

d=Table[Graphics[Circle[],ImageSize->s],{s,20,50,10}]

{MenuView[d],MenuView[d,4]}

With (RefLink[ImageSize, paclet:ref/ImageSize])->(RefLink[Automatic, paclet:ref/Automatic]), (RefLink[MenuView, paclet:ref/MenuView]) resizes for each pane:

{MenuView[d,ImageSize->Automatic],MenuView[d,3,ImageSize->Automatic]}

OpenersExampleSubsection1(Spacer1)MenuView Control  (3)

Start by displaying the third slide:

MenuView[{a,b,c,d},3]

The setting is based on position:

{MenuView[{a,b,c,d},Dynamic[x]],Dynamic[x]}

Connect (RefLink[MenuView, paclet:ref/MenuView]) to a slider:

{MenuView[{a,b,c,d},Dynamic[i]],Slider[Dynamic[i],{1,4,1}]}

OpenersExampleSection2(Spacer1)Options  (9)

OpenersExampleSubsection2(Spacer1)Alignment  (1)

Choose alignments within the view:

d=Table[Graphics[Circle[],ImageSize->s],{s,20,50,10}]

MenuView[d]

MenuView[d,Alignment->Right]

MenuView[d,Alignment->{Right,Bottom}]

OpenersExampleSubsection3(Spacer1)Background  (1)

Change the background color:

Table[MenuView[{1,2,3},Background->c],{c,{Pink,Gray,Yellow,Purple}}]

OpenersExampleSubsection4(Spacer1)BaselinePosition  (1)

Align with surrounding text:

Row[Table[MenuView[{1,2,3},BaselinePosition->c],{c,{Top,Center,Bottom}}],"xxx"]

OpenersExampleSubsection5(Spacer1)ControlPlacement  (1)

Alter the control placement:

Table[MenuView[{1,2,3},ControlPlacement->c],{c,{Top,Bottom,Left,Right}}]

OpenersExampleSubsection6(Spacer1)Deployed  (1)

By setting (RefLink[Deployed, paclet:ref/Deployed]), objects in the display of (RefLink[MenuView, paclet:ref/MenuView]) may not be selected:

{MenuView[{a,b,c,d}],MenuView[{a,b,c,d},Deployed->True]}

OpenersExampleSubsection7(Spacer1)Enabled  (1)

By default, (RefLink[MenuView, paclet:ref/MenuView]) is enabled:

MenuView[{x,y,z}]

By setting (RefLink[Enabled, paclet:ref/Enabled])->(RefLink[False, paclet:ref/False]), (RefLink[MenuView, paclet:ref/MenuView]) is disabled, but visible in its current state:

MenuView[{x,y,z},Enabled->False]

OpenersExampleSubsection8(Spacer1)FrameMargins  (1)

Add margins within the view:

Table[MenuView[{x,y,z},FrameMargins->m],{m,{0,10,20}}]

OpenersExampleSubsection9(Spacer1)ImageMargins  (1)

Add margins outside the view:

Table[Framed[MenuView[{x,y,z},ImageMargins->m]],{m,{0,10,20}}]

OpenersExampleSubsection10(Spacer1)ImageSize  (1)

Control the overall size of (RefLink[MenuView, paclet:ref/MenuView]):

Grid[Table[MenuView[{x,y,z},ImageSize->{w,h}],{h,{30,50,70}},{w,{30,50,70}}]]

OpenersExampleSection3(Spacer1)Applications  (2)

Create a (RefLink[MenuView, paclet:ref/MenuView]) of series expansions:

MenuView[Table[f[x]->Series[f[x],{x,0,5}],{f,{Sin,Cos,Exp,Sinc}}]]

Create a (RefLink[MenuView, paclet:ref/MenuView]) of some of the aerial images available from (RefLink[ExampleData, paclet:ref/ExampleData]):

MenuView[(Last[#]->Dynamic[ExampleData[#]])&/@Take[ExampleData["AerialImage"],10],ImageSize->Automatic]

OpenersExampleSection4(Spacer1)Properties & Relations  (1)

(RefLink[MenuView, paclet:ref/MenuView]) is constructed with (RefLink[PopupMenu, paclet:ref/PopupMenu]):

MenuView[{"I"->1,"II"->2,"III"->3,"IV"->4,"V"->5},4]

Panel[Column[{PopupMenu[Dynamic[x],{1->"I",2->"II",3->"III",4->"IV",5->"V"}],Dynamic[x]}]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TabView, paclet:ref/TabView])  ▪  (RefLink[SlideView, paclet:ref/SlideView])  ▪  (RefLink[FlipView, paclet:ref/FlipView])  ▪  (RefLink[PopupView, paclet:ref/PopupView])  ▪  (RefLink[OpenerView, paclet:ref/OpenerView])  ▪  (RefLink[Manipulate, paclet:ref/Manipulate])  ▪  (RefLink[PaneSelector, paclet:ref/PaneSelector])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Views, paclet:tutorial/Views])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Viewers and Annotation, paclet:guide/ViewersAndAnnotation])}, {▪(RefLinkPlain[Dynamic Visualization, paclet:guide/DynamicVisualization])}, {▪(RefLinkPlain[Layout & Tables, paclet:guide/LayoutAndTables])}, {▪(RefLinkPlain[User Interface Structuring & Layout, paclet:guide/UserInterfaceStructuringAndLayout])}, {▪(RefLinkPlain[Computation with Structured Datasets, paclet:guide/ComputationWithStructuredDatasets])}, {▪(RefLinkPlain[Creating Inspectors, paclet:guide/CreatingInspectors])}, {▪(RefLinkPlain[Palettes, paclet:guide/Palettes])}, {▪(RefLinkPlain[Notebook Document Generation, paclet:guide/DocumentGeneration])}})}})