MenuCommand.selected property
Gets or sets the selected state of a toggle button.
Syntax
var selected = menuCommand.selected;
menuCommand.selected = selected;
Property value
Type: Boolean
true if the toggle button is selected; otherwise, false. This is valid only when the type is "toggle".
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.UI |
See also
Designers
Guidelines for flyouts
Guidelines for context menus