blockly > Toolbox > updateCursorDeleteStyle_
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
Parameter |
Type |
Description |
addStyle |
boolean |
Whether the style should be added or removed. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `updateCursorDeleteStyle_` method dynamically modifies the toolbox cursor to visually indicate whether a dragged block will be deleted upon release."],["This visual cue is determined by the `wouldDelete_` property, reflecting if the hovered area is a drop target for deletion."],["The method accepts a boolean parameter, `addStyle`, dictating whether to apply or remove the delete cursor style."]]],[]]