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
Designers
Guidelines for flyouts
Guidelines for context menus