Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > IIcon > onClick
Metodo IIcon.onClick()
Informa l'icona che gli è stato fatto clic.
Firma:
onClick(): void;
Resi:
null
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-15 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-15 UTC."],[[["The `onClick` method is part of the `IIcon` interface in Blockly and is triggered when the icon is clicked."],["This method does not return any value (`void`) and serves to notify the icon of the click event."],["Developers can implement custom logic within the `onClick` method to define the actions performed when an icon is clicked."]]],["The `IIcon.onClick()` method is a function that signals an icon has been clicked. This method takes no parameters and returns nothing (void). Its core function is to notify the icon object when a user interacts with it by clicking. This notification allows for actions or responses to be triggered based on the click event.\n"]]