Stay organized with collections
Save and categorize content based on your preferences.
blockly > Toolbox > clearSelection
Unhighlights any previously selected item.
Signature:
clearSelection(): void;
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\u003eclearSelection()\u003c/code\u003e method is a member of the \u003ccode\u003eToolbox\u003c/code\u003e class in Blockly and is used to remove highlighting from any previously selected item within the toolbox.\u003c/p\u003e\n"],["\u003cp\u003eThis method does not return any value and its signature is \u003ccode\u003eclearSelection(): void;\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe method is crucial for managing the visual state of the toolbox, ensuring that only one item appears selected at a time by deselecting others.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Toolbox](./blockly.toolbox_class.md) \\\u003e [clearSelection](./blockly.toolbox_class.clearselection_1_method.md)\n\nToolbox.clearSelection() method\n-------------------------------\n\nUnhighlights any previously selected item.\n\n**Signature:** \n\n clearSelection(): void;\n\n**Returns:**\n\nvoid"]]