Module

dom

DOM manipulations utils

View Source libs/dom.js, line 1

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

View Source libs/dom.js, line 32

# 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

View Source libs/dom.js, line 21

# static hide(elem)

Hide the given element, change the visibility state of the widget and remove all listeners

Parameters:
Name Type Description
elem Elem

View Source libs/dom.js, line 52

# static isHidden(el)

Verify is one element is hidden

Parameters:
Name Type Description
el element

DOM Element

View Source libs/dom.js, line 41

# static removeElement(query)

Remove element from Dom by a query

Parameters:
Name Type Description
query string

Query for the Dom

View Source libs/dom.js, line 11