Skip to main content

Home > blockly > Toolbox > updateCursorDeleteStyle_

Toolbox.updateCursorDeleteStyle_() method

Adds or removes the CSS style of the cursor over the toolbox based whether the block or bubble over it is expected to be deleted if dropped (using the internal this.wouldDelete_ property).

Signature:

protected updateCursorDeleteStyle_(addStyle: boolean): void;

Parameters

ParameterTypeDescription
addStylebooleanWhether the style should be added or removed.

Returns:

void