Compartir a través de


MenuCommand.element property

Gets the Document Object Model (DOM) element that hosts the MenuCommand.

Syntax

var element = menuCommand.element;

Property value

Type: HTMLElement

The DOM element that hosts the MenuCommand.

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