OpenerView

OpenerView[{expr1,expr2}]

represents an object which displays as an opener, together with expr1 if the opener is closed, and both expr1 and expr2 if it is open.

OpenerView[{expr1,expr2},state]

specifies the state of the opener, with False being closed, and True being open.

Details and Options

  • The opener displays as when closed, and when opened.
  • The opener is displayed at the top left, outside the expri.
  • 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 expri currently being displayed. ImageSize->All leaves space for the largest of the expri, so that its overall size does not change.
  • With the default setting BaselinePosition->Automatic, the baseline of the OpenerView is taken to be the baseline of the opener icon.
  • Method->"Active" will cause the active area for the opener to include expr1.
  • The settings for BaseStyle are appended to the default style typically given by the "OpenerView" style in the current stylesheet.

Examples

open allclose all

Basic Examples  (2)

In[1]:=
Click for copyable input
Out[1]=

Start in the open setting:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Options  (11)

Applications  (1)

Properties & Relations  (2)

See Also

SlideView  TabView  FlipView  PaneSelector  Opener

Tutorials

Introduced in 2007
(6.0)
| Updated in 2016
(11.0)