Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > BlockDelete > run
Events.BlockDelete.run() method
Run a deletion event.
Signature:
run(forward: boolean): void;
Parameters
Parameter |
Type |
Description |
forward |
boolean |
True if run forward, false if run backward (undo). |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eEvents.BlockDelete.run()\u003c/code\u003e method executes a block deletion event, either forward or backward (for undo).\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a boolean parameter, "forward", which dictates the direction of the event execution: \u003ccode\u003etrue\u003c/code\u003e for deletion and \u003ccode\u003efalse\u003c/code\u003e for undo.\u003c/p\u003e\n"],["\u003cp\u003eCalling this method does not return any value (\u003ccode\u003evoid\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Events](./blockly.events_namespace.md) \\\u003e [BlockDelete](./blockly.events_namespace.blockdelete_class.md) \\\u003e [run](./blockly.events_namespace.blockdelete_class.run_1_method.md)\n\nEvents.BlockDelete.run() method\n\nRun a deletion event.\n\n**Signature:** \n\n run(forward: boolean): void;\n\nParameters\n\n| Parameter | Type | Description |\n|-----------|---------|----------------------------------------------------|\n| forward | boolean | True if run forward, false if run backward (undo). |\n\n**Returns:**\n\nvoid"]]