Поделиться через


Command.selected property

Gets or sets the selected state of an Command of type "toggle".

Syntax

<div 
  data-win-control="WinJS.UI.Command" 
  data-win-options="{ 
    type : 'toggle',
    selected : value}">
</div>
var selected = command.selected;
command.selected = selected;

Property value

Type: Boolean

true if the toggle button is selected; otherwise, false.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

Command