[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

WordPress dependencies

File Size: 1744 lines (55 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

  r()
  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, 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
No description

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

setHeight()   X-Ref
No description

NoPreview({name})   X-Ref
No description

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

edit_Edit(props)   X-Ref
No description

PlaceholderContent({clientId})   X-Ref
No description

PreviewContent({attributes,setAttributes})   X-Ref
No description

save({attributes})   X-Ref
No description

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

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

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

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

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

registerLegacyWidgetVariations(settings)   X-Ref
No description

registerLegacyWidgetBlock(supports = {})   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.

param: {Object} supports Block support settings.

registerWidgetGroupBlock(supports = {})   X-Ref
Registers the Widget Group block.

param: {Object} supports Block support settings.

Functions
Functions that are not part of a class:

r(e)   X-Ref
No description

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

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



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref