Class: AvailableMenuItemsPanelView

wp.customize.Menus. AvailableMenuItemsPanelView


new AvailableMenuItemsPanelView()

wp.customize.Menus.AvailableMenuItemsPanelView View class for the available menu items panel.
Source:

Extends

  • wp.Backbone.View

Methods


<private> _submitNew(event)

Submit handler for keypress (enter) on field and click on button.
Parameters:
Name Type Description
event jQuery.Event Event.
Since:
  • 4.7.0
Source:
Returns:
Type
void

<private> loadItems(itemTypes, deprecated)

Load available nav menu items.
Parameters:
Name Type Description
itemTypes Array:.<object:> List of objects containing type and key.
deprecated string Formerly the object parameter.
Since:
  • 4.7.0 Changed function signature to take list of item types instead of single type/object.
Source:
Returns:
Type
void

<private> submitNew(container)

Creates a new object and adds an associated menu item to the menu.
Parameters:
Name Type Description
container jQuery
Since:
  • 4.7.0
Source:
Returns:
Type
void