Stay organized with collections
Save and categorize content based on your preferences.
blockly > IDeletable
IDeletable interface
The interface for an object that can be deleted.
Signature:
export interface IDeletable
Methods
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\u003eIDeletable\u003c/code\u003e interface defines objects that can be programmatically deleted within Blockly.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for disposal (\u003ccode\u003edispose()\u003c/code\u003e), checking deletability status (\u003ccode\u003eisDeletable()\u003c/code\u003e), and visually indicating pending deletion (\u003ccode\u003esetDeleteStyle()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eObjects implementing this interface can be cleanly removed and managed within a Blockly workspace.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [IDeletable](./blockly.ideletable_interface.md)\n\nIDeletable interface\n--------------------\n\nThe interface for an object that can be deleted.\n\n**Signature:** \n\n export interface IDeletable \n\nMethods\n-------\n\n| Method | Description |\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|\n| [dispose()](./blockly.ideletable_interface.dispose_1_methodsignature.md) | Disposes of this object, cleaning up any references or DOM elements. |\n| [isDeletable()](./blockly.ideletable_interface.isdeletable_1_methodsignature.md) | Get whether this object is deletable or not. |\n| [setDeleteStyle(wouldDelete)](./blockly.ideletable_interface.setdeletestyle_1_methodsignature.md) | Visually indicates that the object is pending deletion. |"]]