[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Touch & Keyboard navigation. Contains handlers for touch devices and keyboard navigation.
File Size: | 354 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
debounce(func, wait, immediate) X-Ref |
Debounce. param: {Function} func param: {number} wait param: {boolean} immediate |
addClass(el, cls) X-Ref |
Add class. param: {Object} el param: {string} cls |
deleteClass(el, cls) X-Ref |
Delete class. param: {Object} el param: {string} cls |
hasClass(el, cls) X-Ref |
Has class? returns: {boolean} Has class param: {Object} el param: {string} cls |
toggleAriaExpandedState( ariaItem ) X-Ref |
Toggle Aria Expanded state for screenreaders. param: {Object} ariaItem |
openSubMenu( currentSubMenu ) X-Ref |
Open sub-menu. param: {Object} currentSubMenu |
closeSubMenu( currentSubMenu ) X-Ref |
Close sub-menu. param: {Object} currentSubMenu |
getCurrentParent( child, selector, stopSelector ) X-Ref |
Find first ancestor of an element by selector. param: {Object} child param: {String} selector param: {String} stopSelector |
removeAllFocusStates() X-Ref |
Remove all off-canvas states. |
toggleSubmenuDisplay() X-Ref |
Toggle `focus` class to allow sub-menu access on touch screens. |
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |