Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > Icon > isClickableInFlyout
icons.Icon.isClickableInFlyout() method
Check whether the icon should be clickable while the block is in a flyout. The default is that icons are clickable in all flyouts (auto-closing or not). Subclasses may override this function to change this behavior.
Signature:
isClickableInFlyout(autoClosingFlyout: boolean): boolean;
Parameters
Parameter |
Type |
Description |
autoClosingFlyout |
boolean |
true if the containing flyout is an auto-closing one. |
Returns:
boolean
Whether the icon should be clickable while the block is in a flyout.
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 `isClickableInFlyout` method determines if an icon on a block can be clicked when the block is inside a flyout."],["By default, icons are clickable in all types of flyouts, but this behavior can be customized by subclasses."],["The method takes a boolean argument indicating whether the flyout automatically closes and returns a boolean indicating if the icon is clickable."]]],["The `isClickableInFlyout()` method determines if an icon is clickable when its associated block is in a flyout. It accepts a boolean `autoClosingFlyout` parameter, indicating if the flyout automatically closes. By default, icons are clickable in all flyouts. Subclasses can override this method to modify this behavior. The method returns a boolean indicating whether the icon should be clickable within the specified flyout type.\n"]]