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
- 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: