@JsType(isNative=true) public class DOMTokenList extends Object
DOMTokenList.
//TODO Documentar la interface| Constructor and Description |
|---|
DOMTokenList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String obj)
Adds token to the underlying string
|
Boolean |
contains(String obj)
Returns true if the underlying string contains token, otherwise false
|
int |
getLenth()
This interface doesn't inherit any property.
|
String |
item(int index)
Returns an item in the list by its index (or undefined if the number is
greater than or equal to the length of the list, prior to Gecko 7.0
returned null)
|
void |
remove(String obj)
Removes token from the underlying string
|
Boolean |
toggle(String obj)
Removes token from string and returns false.
|
public DOMTokenList()
@JsProperty public int getLenth()
public String item(int index)
index - public Boolean contains(String obj)
obj - Copyright © 2017. All rights reserved.