DOM manipulations utils
Methods
# static applyStyles(query, props)
Apply styles for the element
Parameters:
Name | Type | Description |
---|---|---|
query |
string
|
Query for the element to apply styles |
props |
object
|
Object of styles for assign to the element |
# static createElement(elem, props)
Create Dom element
Parameters:
Name | Type | Description |
---|---|---|
elem |
string
|
The element to create |
props |
object
|
Object of properties for assign to the element |
# static hide(elem)
Hide the given element, change the visibility state of the widget and remove all listeners
Parameters:
Name | Type | Description |
---|---|---|
elem |
Elem
|
# static isHidden(el)
Verify is one element is hidden
Parameters:
Name | Type | Description |
---|---|---|
el |
element
|
DOM Element |
# static removeElement(query)
Remove element from Dom by a query
Parameters:
Name | Type | Description |
---|---|---|
query |
string
|
Query for the Dom |