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

blockly > Events > BlockDelete

Events.BlockDelete class

Class for a block deletion event.

Signature:

export declare class BlockDelete extends BlockBase 

Extends: BlockBase

Constructors

Constructor Modifiers Description
(constructor)(opt_block) Constructs a new instance of the BlockDelete class

Properties

Property Modifiers Type Description
ids? string[] (Optional)
oldJson? blocks.State (Optional)
oldXml? Element | DocumentFragment (Optional)
type string
wasShadow? boolean (Optional)

Methods

Method Modifiers Description
fromJson(json) Decode the JSON event.
run(forward) Run a deletion event.
toJson() Encode the event as JSON.