id property

Command.id property

Applies to Windows and Windows Phone

Gets or sets the Command identifier.

Syntax


<div 
  data-win-control="WinJS.UI.Command" 
  data-win-options="{ id : value}">
</div>



var id = command.id;

Property value

Type: String

An alphanumeric String that begins with a letter. The underscore (_) can also be used.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

Command

 

 

Show:
© 2017 Microsoft