Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > ToolboxCategory > openIcon_
Aggiunge le classi appropriate per visualizzare un'icona aperta.
Firma:
protected openIcon_(iconDiv: Element | null): void;
Parametri
Parametro |
Tipo |
Descrizione |
iconDiv |
Elemento | null |
Il div che contiene l'icona. |
Resi:
nullo
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-10-16 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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"]]