Skip to main content

Home > blockly > Events > BlockFieldIntermediateChange

Events.BlockFieldIntermediateChange class

Notifies listeners when the value of a block's field has changed but the change is not yet complete, and is expected to be followed by a block change event.

Signature:

export declare class BlockFieldIntermediateChange extends BlockBase 

Extends: BlockBase

Constructors

ConstructorModifiersDescription
(constructor)(opt_block, opt_name, opt_oldValue, opt_newValue)Constructs a new instance of the BlockFieldIntermediateChange class

Properties

PropertyModifiersTypeDescription
name?string(Optional) The name of the field that changed.
newValueunknownThe new value of the element.
oldValueunknownThe original value of the element.
recordUndoboolean
typeEventType

Methods

MethodModifiersDescription
isNull()Does this event record any change of state?
run(forward)Run a change event.
toJson()Encode the event as JSON.