blockly > IDeleteArea

IDeleteArea interface

Interface for a component that can delete a block or bubble that is dropped on top of it.


export interface IDeleteArea extends IDragTarget 

Extends: IDragTarget


Method Description
wouldDelete(element) Returns whether the provided block or bubble would be deleted if dropped on this area. This method should check if the element is deletable and is always called before onDragEnter/onDragOver/onDragExit.