Share via


Command.priority property

Gets or sets the priority of the Command.

Syntax

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

Property value

Type: Number

A number greater than or equal to 0 that specifies the priority level of the command. Lower numbers indicate greater priority. The default value is undefined.

Remarks

The Toolbar uses the priority property to determine command grouping and which commands are displayed in the overflow area.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

Command