[ Index ]

PHP Cross Reference of WordPress




/wp-includes/js/dist/ -> widgets.js (summary)

(no description)

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

Defines 1 class

control_Control:: (18 methods):

Defines 18 functions


Class: control_Control  - X-Ref

An API for creating and loading a widget control (a <div class="widget">
element) that is compatible with most third party widget scripts. By not
using React for this, we ensure that we have complete contorl over the DOM
and do not accidentally remove any elements that a third party widget script
has attached an event listener to.

el(tagName, attributes = {}, content = null)   X-Ref
No description

isEmptyHTML(html)   X-Ref
No description

isEmptyNode(node)   X-Ref
No description

serializeForm(form)   X-Ref
No description

Form({title,isVisible,id,idBase,instance,isWide,onChangeInstance,onChangeHasPreview})   X-Ref
Internal dependencies

Preview({idBase,instance,isVisible})   X-Ref
No description

setHeight()   X-Ref
No description

NoPreview({name})   X-Ref
WordPress dependencies

ConvertToBlocksButton({clientId,rawInstance})   X-Ref
No description

Edit(props)   X-Ref
No description

Empty({attributes: {id,idBase},setAttributes})   X-Ref
No description

NotEmpty({attributes: {id,idBase,instance},setAttributes,clientId,isSelected,isWide = false})   X-Ref
No description

MoveToWidgetArea({currentWidgetAreaId,widgetAreas,onSelect})   X-Ref
No description

getWidgetIdFromBlock(block)   X-Ref
Get the internal widget id from block.

return: {string} The internal widget id.
param: {Block} block The block.

addWidgetIdToBlock(block, widgetId)   X-Ref
Add internal widget id to block's attributes.

return: {Block} The updated block.
param: {Block} block The block.
param: {string} widgetId The widget id.

registerLegacyWidgetVariations(settings)   X-Ref
No description

registerLegacyWidgetBlock()   X-Ref
Registers the Legacy Widget block.

Note that for the block to be useful, any scripts required by a widget must
be loaded into the page.

classNames()   X-Ref
No description

Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

getDefault()   X-Ref
No description

getModuleExports()   X-Ref
No description

WidgetTypeSelector({selectedId,onSelect})   X-Ref
No description

InspectorCard({name,description})   X-Ref
No description

Generated: Mon Oct 25 01:00:03 2021 Cross-referenced by PHPXref 0.7.1