blockly > ToolboxCategory > openIcon_
Adds appropriate classes to display an open icon.
Signature:
protected openIcon_(iconDiv: Element | null): void;
Parameters
Parameter |
Type |
Description |
iconDiv |
Element | null |
The div that holds the icon. |
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 `openIcon_` method is used to visually indicate that a ToolboxCategory is open by adding specific classes to its icon."],["It is a protected method within the `ToolboxCategory` class, accepting the icon's div element as an argument."],["This method modifies the provided icon element directly and does not return any value."]]],["The `openIcon_()` method, part of the `ToolboxCategory` class, is responsible for visually indicating that a category is open. It takes an `iconDiv` element as a parameter, which represents the icon's container. The method then adds specific CSS classes to this `iconDiv` to display the open icon. It returns nothing (void) after modifying the provided element.\n"]]