JS Actions
lzb.components.PreviewServerCallback.onBeforeChange
Action called in editor preview before
renders new block content. Use this action to destroy your custom JS.
Attributes
Name | Type | Description |
---|---|---|
props | Object | props |
Usage
JS
wp.hooks.addAction(
"lzb.components.PreviewServerCallback.onBeforeChange",
"my.custom.namespace",
function (props) {
console.log(props);
}
);
Previous Articlelzb.editor.control.updateValueNext Articlelzb.components.PreviewServerCallback.onChange