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