ToolBar.closedDisplayMode property

closedDisplayMode gets or sets the display options for the actionarea when the ToolBar is closed.

Syntax

<div data-win-control="WinJS.UI.ToolBar" data-win-options="{ closedDisplayMode : value}" />
var closedDisplayMode = toolBar.closedDisplayMode;
toolBar.closedDisplayMode = closedDisplayMode;

Property value

Type: string

Display options for the actionarea when the ToolBar is closed.

Value Condition
"compact"

The height of the closed ToolBar is reduced such that button commands are still visible, but their labels are hidden.

"full"

The height of the closed ToolBar is always sized to content.

 

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

ToolBar