Block Editor Events
-
I’m creating a Gutenberg block, and I’ve got inspector controls defined; these are showing up and working. Now, what I’m trying to figure out is how to have an event fire after the block inspector controls are drawn.
The block controls have a variety of options, and which ones should be displayed depends upon the selections of other controls. I have the refresh working, but I would like a callback to set the initial state of the controls.
I’ve looked through the documentation for registerBlockType, and only see edit() and save() documented as methods on the block attributes. Are there other events that can be defined? Can anyone point me to documentation on this?
If I’m thinking about this the wrong way, can someone point me to a better method?
The topic ‘Block Editor Events’ is closed to new replies.