Methods
Adds `name` to the element's class attribute.
Name | Type | Description |
---|---|---|
el |
* | |
name |
* |
Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element.
Name | Type | Default | Description |
---|---|---|---|
tagName |
|||
className |
|||
container |
null
|
Returns:
Creates svg
Name | Type | Description |
---|---|---|
width |
||
height |
||
path |
||
container |
Returns:
Removes all of `el`'s children elements from `el`
Name | Type | Description |
---|---|---|
el |
* |
enter full screen
Name | Type | Description |
---|---|---|
el |
exit full screen
Returns an element given its DOM id, or returns the element itself
if it was passed directly.
Name | Type | Description |
---|---|---|
id |
Returns:
Returns the element's class.
Name | Type | Description |
---|---|---|
el |
* |
Returns the value for a certain style attribute on an element,
including computed values or values set through CSS.
Name | Type | Description |
---|---|---|
el |
||
style |
Returns:
Returns `true` if the element's class attribute contains `name`.
Name | Type | Description |
---|---|---|
el |
* | |
name |
* |
Parses string to Dom
Name | Type | Description |
---|---|---|
domStr |
||
withWrapper |
||
className |
Returns:
Removes `el` from its parent element
Name | Type | Description |
---|---|---|
el |
* |
Removes `name` from the element's class attribute.
Name | Type | Description |
---|---|---|
el |
* | |
name |
* |
Sets the element's class.
Name | Type | Description |
---|---|---|
el |
* | |
name |
* |