blockly > ToolboxCategory > openIcon_
Dodaje odpowiednie zajęcia, aby wyświetlić ikonę otwartej.
Podpis:
protected openIcon_(iconDiv: Element | null): void;
Parametry
Parametr |
Typ |
Opis |
iconDiv |
Element | null |
Element div z ikoną. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-10-16 UTC.
[null,null,["Ostatnia aktualizacja: 2024-10-16 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"]]