[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-content/themes/twentynineteen/js/ -> priority-menu.js (summary)

(no description)

File Size: 216 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  debounce()
  prependElement()
  showButton()
  hideButton()
  getAvailableSpace()
  isOverflowingNavivation()
  updateNavigationMenu()

Functions
Functions that are not part of a class:

debounce(func, wait, immediate)   X-Ref
Debounce

param: {Function} func
param: {number} wait
param: {boolean} immediate

prependElement(container, element)   X-Ref
Prepends an element to a container.

param: {Element} container
param: {Element} element

showButton(element)   X-Ref
Shows an element by adding a hidden className.

param: {Element} element

hideButton(element)   X-Ref
Hides an element by removing the hidden className.

param: {Element} element

getAvailableSpace( button, container )   X-Ref
Returns the currently available space in the menu container.

returns: {number} Available space

isOverflowingNavivation( list, button, container )   X-Ref
Returns whether the current menu is overflowing or not.

returns: {boolean} Is overflowing

updateNavigationMenu( container )   X-Ref
Refreshes the list item from the menu depending on the menu size




Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7