addClass function

WinJS.Utilities.addClass function

Applies to Windows and Windows Phone

Adds the specified class to the specified element.

Syntax


var thmlElement = WinJS.Utilities.addClass(e, name);

Parameters

e

Type: HTMLElement

The element to which to add the class.

name

Type: string

The name of the class to add.

Return value

Type: THMLElement

The element.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

 

 

Show:
© 2016 Microsoft