Menu.disabled property

Gets or sets a value that indicates whether the Menu is disabled.

Syntax

<div data-win-control="WinJS.UI.Menu" data-win-options="{ disabled : value}" />
var disabled = menu.disabled;
menu.disabled = disabled;

Property value

Type: ****

True if the Menu is disabled; otherwise false.

Remarks

A disabled menu is hidden and cannot be shown.

Setting this property to true, disables the menu. If the menu is visible, hide is called.

Setting this property to false, enables the menu and reinstates all functionality.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

Menu