Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > IIcon > onClick
Méthode IIcon.onClick()
Notifie l'icône qu'un clic a été effectué.
Signature :
onClick(): void;
Renvoie :
vide
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/10/15 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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"]]