Skip to main content

Home > blockly > BlockSvg > setDeletable

BlockSvg.setDeletable() method

Add blocklyNotDeletable class when block is not deletable Or remove class when block is deletable

Signature:

setDeletable(deletable: boolean): void;

Parameters

ParameterTypeDescription
deletableboolean

Returns:

void