Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > Click > (constructor)
Events.Click.(constructor)
Constructs a new instance of the Click
class
Signature:
constructor(opt_block?: Block | null, opt_workspaceId?: string | null, opt_targetType?: ClickTarget);
Parameters
Parameter |
Type |
Description |
opt_block |
Block | null |
(Optional) The affected block. Null for click events that do not have an associated block (i.e. workspace click). Undefined for a blank event. |
opt_workspaceId |
string | null |
(Optional) The workspace identifier for this event. Not used if block is passed. Undefined for a blank event. |
opt_targetType |
ClickTarget |
(Optional) The type of element targeted by this click event. Undefined for a blank event. |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `Click` class constructor creates a new click event instance."],["It optionally takes the affected block, workspace ID, and target type as parameters."],["These parameters help define the specifics of the click event for handling and processing."]]],[]]