[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

WordPress dependencies

File Size: 509 lines (21 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(state = {}, action)   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({clientIds,rootClientId,onClose})   X-Ref
Menu control to convert block(s) to reusable block.

return: {import('react').ComponentType} 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.
param: {()=>void} props.onClose      Callback to close the menu.

ReusableBlocksManageButton({clientId})   X-Ref
Internal dependencies


ReusableBlocksMenuItems({rootClientId})   X-Ref
Internal dependencies




Generated : Thu Apr 25 08:20:02 2024 Cross-referenced by PHPXref