Members
(inner, constant) ATTRIBUTE
The attribute to use for toggling
see styling therefore 'scss/mixins/_attributes.scss'
- Source:
Methods
(static) getToggledAttribute(element) → {boolean|undefined}
Parameters:
Name | Type | Description |
---|---|---|
element |
HTMLElement | The element |
- Source:
Returns:
`true` if the element is toggled
- Type
- boolean | undefined
(static) isElementToggled(element) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
element |
HTMLElement | The element |
- Source:
Returns:
`true` if the element is toggled
- Type
- boolean
(static) toggleElement(element, toggleopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
element |
HTMLElement | The element to toggle | |
toggle |
boolean |
<optional> |
Will toggle according to the value. If no value is provided, the current value will be inverted |
- Source: