[ Index ]

PHP Cross Reference of WordPress




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

(no description)

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

Defines 12 functions


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

convertBlockToStatic(clientId)   X-Ref
Convert a reusable block to a static block effect handler

param: {string}  clientId Block ID.
return: {Object} control descriptor.

controls_convertBlocksToReusable(clientIds, title)   X-Ref
Convert a static block to a reusable block effect handler

param: {Array} clientIds Block IDs.
param: {string} title    Reusable block title.
return: {Object} control descriptor.

deleteReusableBlock(id)   X-Ref
Deletes a reusable block.

param: {string} id Reusable block ID.
return: {Object} control descriptor.

__experimentalSetEditingReusableBlock(clientId, isEditing)   X-Ref
No description

isEditingReusableBlock(state = {}, action)   X-Ref
WordPress dependencies

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

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

ReusableBlockConvertButton({clientIds,rootClientId})   X-Ref
Menu control to convert block(s) to reusable block.

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.
return: {import('@wordpress/element').WPComponent} The menu control or null.

ReusableBlocksManageButton({clientId})   X-Ref
No description

ReusableBlocksMenuItems({clientIds,rootClientId})   X-Ref
No description

Generated: Sun Oct 24 01:00:03 2021 Cross-referenced by PHPXref 0.7.1