blockly > Block > onchange

Block.onchange property

An optional callback method to use whenever the block's parent workspace changes. This is usually only called from the constructor, the block type initializer function, or an extension initializer function.

Signature:

onchange?: ((p1: Abstract) => void) | null;