Stay organized with collections Save and categorize content based on your preferences.

blockly > Events > BlockChange

Events.BlockChange class

Class for a block change event.

Signature:

export declare class BlockChange extends BlockBase 

Extends: BlockBase

Constructors

Constructor Modifiers Description
(constructor)(opt_block, opt_element, opt_name, opt_oldValue, opt_newValue) Constructs a new instance of the BlockChange class

Properties

Property Modifiers Type Description
element? string (Optional)
name? string (Optional)
newValue unknown
oldValue unknown
type string

Methods

Method Modifiers Description
fromJson(json) Decode the JSON event.
isNull() Does this event record any change of state?
run(forward) Run a change event.
toJson() Encode the event as JSON.