WinJS.Utilities.addClass function

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: