ARIA helpers related to the aria-hidden attribute.
- Source:
- Copyright:
- 2020 Andrew Nicols
- 2020 Andrew Nicols
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Methods
(static) hide(target) → {Array}
Update the supplied DOM Module to be hidden.
Parameters:
Name | Type | Description |
---|---|---|
target |
HTMLElement |
Returns:
- Type
- Array
(static) hideSiblings(target) → {Array}
Correctly mark all siblings of the supplied target Element as hidden.
Parameters:
Name | Type | Description |
---|---|---|
target |
HTMLElement |
Returns:
- Type
- Array
(static) unhide(target) → {Array}
Reverse the effect of the hide action.
Parameters:
Name | Type | Description |
---|---|---|
target |
HTMLElement |
Returns:
- Type
- Array
(static) unhideSiblings(target) → {Array}
Correctly reverse the hide action of all children of the supplied target Element.
Parameters:
Name | Type | Description |
---|---|---|
target |
HTMLElement |
Returns:
- Type
- Array