new Basic(tagName)
Parameters:
Name | Type | Description |
---|---|---|
tagName |
string |
- Source:
Extends
Methods
-
attr()
-
Prefer use of Element#getAttribute and Element#setAttribute
.attr(values) .attr(name, value) .attr(name)
- Inherited From:
- Source:
-
empty()
-
Remove the children's element
- Inherited From:
- Source:
-
getAttribute(attributeName) → {string}
-
Get the value of an attribute
Parameters:
Name Type Description attributeName
string - Inherited From:
- Source:
Returns:
- Type
- string
-
getValue() → {string}
-
Get value
- Inherited From:
- Source:
Returns:
- Type
- string
-
hide()
-
Hide the element (add the class .hidden)
- Inherited From:
- Source:
-
prop()
-
Prefer use of Element#getProperty and {@link Element#setProperty}
.prop(properties) .prop(name, value) .prop(name)
- Inherited From:
- Source:
-
remove()
-
Remove the element from the DOM
- Inherited From:
- Source:
-
setValue(_class) → {Element}
-
Set value
Parameters:
Name Type Description _class
string - Inherited From:
- Source:
Returns:
- Type
- Element
-
show()
-
Show the element (remove the class .hidden)
- Inherited From:
- Source:
-
stop()
-
Stop any animations for the element
- Inherited From:
- Source:
-
style()
-
Prefer use of Element#getStyle and {@link Element#setStyle}
.style(properties) .style(name, value) .style(name)
- Inherited From:
- Source:
-
toggle()
-
Toggle an element's visibility using the hidden class
- Inherited From:
- Source: