[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 1 class

Control:: (22 methods):
  el()
  isEmptyHTML()
  isEmptyNode()
  serializeForm()
  Form()
  Preview()
  setHeight()
  NoPreview()
  ConvertToBlocksButton()
  Edit()
  Empty()
  NotEmpty()
  edit_Edit()
  PlaceholderContent()
  PreviewContent()
  save()
  MoveToWidgetArea()
  getWidgetIdFromBlock()
  addWidgetIdToBlock()
  registerLegacyWidgetVariations()
  registerLegacyWidgetBlock()
  registerWidgetGroupBlock()

Defines 22 functions

  classNames()
  __webpack_require__()
  WidgetTypeSelector()
  InspectorCard()

Class: 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)   X-Ref
No description

isEmptyHTML(html)   X-Ref
No description

isEmptyNode(node)   X-Ref
No description

serializeForm(form)   X-Ref
No description

Form(_ref)   X-Ref
Internal dependencies


Preview(_ref)   X-Ref
No description

setHeight()   X-Ref
No description

NoPreview(_ref)   X-Ref
WordPress dependencies


ConvertToBlocksButton(_ref)   X-Ref
No description

Edit(props)   X-Ref
No description

Empty(_ref)   X-Ref
No description

NotEmpty(_ref3)   X-Ref
No description

edit_Edit(props)   X-Ref
No description

PlaceholderContent(_ref)   X-Ref
No description

PreviewContent(_ref2)   X-Ref
No description

save(_ref)   X-Ref
WordPress dependencies


MoveToWidgetArea(_ref)   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.


registerWidgetGroupBlock()   X-Ref
Registers the Widget Group block.


Functions
Functions that are not part of a class:

classNames()   X-Ref
No description

__webpack_require__(moduleId)   X-Ref
No description

WidgetTypeSelector(_ref)   X-Ref
No description

InspectorCard(_ref)   X-Ref
No description



Generated: Tue Dec 24 01:00:02 2024 Cross-referenced by PHPXref 0.7.1