Compartir a través de


Command.icon property

Gets or sets the Command icon.

Syntax

<div 
  data-win-control="WinJS.UI.Command" 
  data-win-options="{ icon : value}">
</div>
var icon = command.icon;
command.icon = icon;

Property value

Type: String**

One of the values of AppBarIcon, or a PNG file.

Remarks

Custom icons should be 20x20 PNG files with a transparent background.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

Command

AppBarIcon