Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > WarningIcon > initView
icons.WarningIcon.initView() method
Signature:
initView(pointerdownListener: (e: PointerEvent) => void): void;
Parameters
Parameter |
Type |
Description |
pointerdownListener |
(e: PointerEvent) => void |
|
Returns:
void
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."],[[["\u003cp\u003eThe \u003ccode\u003einitView\u003c/code\u003e method initializes the visual representation of the WarningIcon, likely displaying a warning symbol.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a \u003ccode\u003epointerdownListener\u003c/code\u003e function as an argument, which will be executed when the icon is clicked or tapped.\u003c/p\u003e\n"],["\u003cp\u003eThe method does not return any value (\u003ccode\u003evoid\u003c/code\u003e).\u003c/p\u003e\n"]]],["The `initView()` method, part of the `WarningIcon` class within the `icons` namespace, takes a `pointerdownListener` as a parameter. This listener is a function that receives a `PointerEvent` object (`e`) and performs an action. The method itself does not return any value (void). Its primary action is initializing a view, and it relies on the provided listener for pointer down interactions.\n"],null,["[blockly](./blockly.md) \\\u003e [icons](./blockly.icons_namespace.md) \\\u003e [WarningIcon](./blockly.icons_namespace.warningicon_class.md) \\\u003e [initView](./blockly.icons_namespace.warningicon_class.initview_1_method.md)\n\nicons.WarningIcon.initView() method\n-----------------------------------\n\n**Signature:** \n\n initView(pointerdownListener: (e: PointerEvent) =\u003e void): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|---------------------|----------------------------|-------------|\n| pointerdownListener | (e: PointerEvent) =\\\u003e void | |\n\n**Returns:**\n\nvoid"]]