Class gxe.html.HtmlAttributes
Extends
gxe.util.ArrayList.
A collection of HTML based attributes.
Defined in: gxe.js.
Constructor Attributes | Constructor Name and Description |
---|---|
- Fields borrowed from class :
- gxe.util.ArrayList#_array
Method Attributes | Method Name and Description |
---|---|
apply(elHtml)
Applies the attribute collection to an HTML DOM Element.
|
|
find(name)
Finds an attribute with given name.
|
|
set(name, value)
Adds an HTML attribute to the collection.
|
- Methods borrowed from class gxe.util.ArrayList:
- add, getItem, getLength, insertAt, push, removeIndex, swapPosition
Method Detail
apply(elHtml)
Applies the attribute collection to an HTML DOM Element.
(i.e. sets all attribute values)
- Parameters:
- {Element} elHtml
- the corresponding HTML DOM Element
{gxe.html.HtmlAttribute}
find(name)
Finds an attribute with given name.
- Parameters:
- {String} name
- the name of the attribute to find
- Returns:
- {gxe.html.HtmlAttribute} the corresponding attribute (null if not found)
set(name, value)
Adds an HTML attribute to the collection.
If an attribute with the supplied name previously exists, its value will be updated.
- Parameters:
- {String} name
- the name of the attribute
- {Object} value
- the value of the attribute