Partager via


MenuCommand.extraClass property

Adds an extra CSS class during construction.

Syntax

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

Property value

Type: string

The name of the CSS class.

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