[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/js/ -> customize-widgets.js (summary)

(no description)

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

Defines 4 functions

  focusConstructWithBreadcrumb()
  onceCollapsed()
  parseWidgetId()
  widgetIdToSettingId()

Functions
Functions that are not part of a class:

focusConstructWithBreadcrumb( focusConstruct, returnConstruct )   X-Ref
Focus (expand) one construct and then focus on another construct after the first is collapsed.

This overrides the back button to serve the purpose of breadcrumb navigation.

param: {wp.customize.Section|wp.customize.Panel|wp.customize.Control} focusConstruct  The object to initially focus.
param: {wp.customize.Section|wp.customize.Panel|wp.customize.Control} returnConstruct The object to return focus.

onceCollapsed( isExpanded )   X-Ref
Determines whether to return focus to the returnConstruct after the focusConstruct is collapsed.

param: {boolean} isExpanded Whether the focusConstruct is expanded.

parseWidgetId( widgetId )   X-Ref
Parses a widget ID into its id_base and number components.

return: {Object} Parsed widget ID with id_base and number properties.
param: {string} widgetId The widget ID to parse.

widgetIdToSettingId( widgetId )   X-Ref
Returns the setting ID for a given widget ID.

return: {string} The setting ID for the widget.
param: {string} widgetId The widget ID.



Generated : Sun Sep 13 08:20:28 2026 Cross-referenced by PHPXref