This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


represents an object which displays as an opener, together with if the opener is closed, and both and if it is open.
specifies the state of the opener, with False being closed, and True being open.
  • The opener displays as when closed, and when opened.
  • The opener is displayed at the top left, outside the .
  • OpenerView[list, Dynamic[state]] takes the opener state to be specified by the dynamically updated current value of state, with the value of state being reset if the opener is clicked.
  • The following options can be given:
AlignmentAutomatichow to align objects in the display area
BackgroundNonebackground color to use
BaselinePositionAutomaticalignment relative to surrounding text
BaseStyle{}base style specifications for the opener view
EnabledAutomaticwhether controls are enabled
FrameMarginsAutomaticmargins inside the overall frame
ImageMargins0margins around the display area
ImageSizeAutomaticthe overall image size for the display area
  • With the default option setting ImageSize->Automatic, OpenerView leaves space only for the currently being displayed. ImageSize->All leaves space for the largest of the , so that its overall size does not change.
  • The settings for BaseStyle are appended to the default style typically given by the style in the current stylesheet.
Start in the open setting:
Click for copyable input
Start in the open setting:
Click for copyable input
Use graphics as content in OpenerView:
OpenerView can contain any expression, including Manipulate:
OpenerView can be nested:
By default, an OpenerView resizes according to its state:
With ImageSize -> All, OpenerView leaves enough space to display without ever resizing:
Start by displaying the open expression:
Connect an OpenerView to a checkbox:
Different alignments within the view:
Specify Alignment within the ImageSize:
By default the opener will not change until you click the opener area:
By setting AutoAction, the opener changes as the mouse moves over the opener area:
Change the background color:
Change the background color dynamically:
Align with surrounding text:
By default, OpenerView is enabled:
By setting Enabled->False, OpenerView is disabled, but visible in its current state:
Add margins within the view:
Add margins outside the view:
Control the overall size of OpenerView:
Show the graphical representation of a clock:
OpenerView is a construction of Opener and PaneSelector:
Dynamic variables only update when visible:
New in 6