Compartir a través de


Command.extraClass property

Gets or sets additional Cascading Style Sheets (CSS) classes to apply to the element that hosts the Command.

Syntax

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

Property value

Type: String**

A String that contains one or more CSS classes to append to the element that hosts the Command. When there are multiple class names, they are separated by one or more spaces.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

Command