id property

MenuCommand.id property

Applies to Windows only

Gets the element identifier (ID) of the command.

Syntax


var id = menuCommand.id;

Property value

Type: string

The element ID.

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

 

 

Show:
© 2016 Microsoft