Partager via


MenuCommand.disabled property

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

Syntax

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

Property value

Type: Boolean

true if the MenuCommand is disabled; otherwise, false.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

MenuCommand

Menu

Flyout

Displaying popups

Laying out your UI

HTML flyout control sample

Designers

Command patterns

Flyout

Guidelines for flyouts

Context menu

Guidelines for context menus