new MenuLocationControl() wp.customize.Menus.MenuLocationControl Customizer control for menu locations (rendered as a ). Note that 'nav_menu_location' must match the WP_Customize_Nav_Menu_Location_Control::$type. Source: _enqueues/wp/customize/nav-menus.js, line 1459 Extends wp.customize.Control Members defaults :object Default params. Type: object Since: 4.9.0 Inherited From: wp.customize.Control#defaults Source: _enqueues/wp/customize/controls.js, line 3462 Methods <private> addNewPage() Add a new page to a dropdown-pages control reusing menus code for this. Since: 4.7.0 Inherited From: wp.customize.Control#addNewPage Source: _enqueues/wp/customize/controls.js, line 4059 Returns: Type void embed() Embed the control into the page. Inherited From: wp.customize.Control#embed Source: _enqueues/wp/customize/controls.js, line 3686 expand( [params]) Normal controls do not expand, so just expand its parent Parameters: Name Type Argument Description params Object <optional> Inherited From: wp.customize.Control#expand Source: _enqueues/wp/customize/controls.js, line 3887 getNotificationsContainerElement() Get the element inside of a control's container that contains the validation error message. Control subclasses may override this to return the proper container to render notifications into. Injects the notification container for existing controls that lack the necessary container, including special handling for nav menu items and widgets. Since: 4.6.0 Inherited From: wp.customize.Control#getNotificationsContainerElement Source: _enqueues/wp/customize/controls.js, line 3749 Returns: Setting validation message element. Type jQuery linkElements() Link elements between settings and inputs. Since: 4.7.0 Inherited From: wp.customize.Control#linkElements Source: _enqueues/wp/customize/controls.js, line 3643 Returns: Type void onChangeActive(active, args) Update UI in response to a change in the control's active state. This does not change the active state, it merely handles the behavior for when it does change. Parameters: Name Type Description active Boolean args Object Properties Name Type Description duration Number completeCallback function Since: 4.1.0 Inherited From: wp.customize.Control#onChangeActive Source: _enqueues/wp/customize/controls.js, line 3908 ready() Triggered when the control's markup has been injected into the DOM. Inherited From: wp.customize.Control#ready Overrides: wp.customize.Control#ready Source: _enqueues/wp/customize/controls.js, line 3718 Returns: Type void renderContent() Render the control from its JS template, if it exists. The control's container must already exist in the DOM. Since: 4.1.0 Inherited From: wp.customize.Control#renderContent Source: _enqueues/wp/customize/controls.js, line 3999 renderNotifications() Render notifications. Renders the `control.notifications` into the control's container. Control subclasses may override this method to do their own handling of rendering notifications. This: {wp.customize.Control:} Since: 4.6.0 Inherited From: wp.customize.Control#renderNotifications Deprecated: in favor of `control.notifications.render()` Source: _enqueues/wp/customize/controls.js, line 3844 setupNotifications() Set up notifications. Since: 4.9.0 Inherited From: wp.customize.Control#setupNotifications Source: _enqueues/wp/customize/controls.js, line 3780 Returns: Type void toggle() Inherited From: wp.customize.Control#toggle Deprecated: 4.1.0 Use this.onChangeActive() instead. Source: _enqueues/wp/customize/controls.js, line 3932 × Search results Close Documentation generated by JSDoc 3.6.4 on 2020-06-17T11:56:28+00:00 using the DocStrap template.