[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> reusable-blocks.js (summary)

External dependencies

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

Defines 6 functions

  __experimentalSetEditingReusableBlock()
  isEditingReusableBlock()
  __experimentalIsEditingReusableBlock()
  ReusableBlockConvertButton()
  ReusableBlocksManageButton()
  ReusableBlocksMenuItems()

Functions
Functions that are not part of a class:

__experimentalSetEditingReusableBlock(clientId, isEditing)   X-Ref
Returns an action descriptor for SET_EDITING_REUSABLE_BLOCK action.

return: {Object} Action descriptor.
param: {string}  clientId  The clientID of the reusable block to target.
param: {boolean} isEditing Whether the block should be in editing state.

isEditingReusableBlock()   X-Ref
WordPress dependencies


__experimentalIsEditingReusableBlock(state, clientId)   X-Ref
Returns true if reusable block is in the editing state.

return: {boolean} Whether the reusable block is in the editing state.
param: {Object} state    Global application state.
param: {number} clientId the clientID of the block.

ReusableBlockConvertButton(_ref)   X-Ref
Menu control to convert block(s) to reusable block.

return: {import('@wordpress/element').WPComponent} The menu control or null.
param: {Object}   props              Component props.
param: {string[]} props.clientIds    Client ids of selected blocks.
param: {string}   props.rootClientId ID of the currently selected top-level block.

ReusableBlocksManageButton(_ref)   X-Ref
No description

ReusableBlocksMenuItems(_ref)   X-Ref
No description



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1