Stay organized with collections
Save and categorize content based on your preferences.
blockly > IIcon > isClickableInFlyout
IIcon.isClickableInFlyout() method
Check whether the icon should be clickable while the block is in a flyout. If this function is not defined, the icon will be clickable in all flyouts.
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 is clickable when its block is in a flyout. It accepts a boolean parameter, `autoClosingFlyout`, indicating if the flyout closes automatically. The method returns a boolean: `true` if the icon is clickable, `false` otherwise. If the method isn't defined, the icon is clickable in all flyouts. The `autoClosingFlyout` type is a boolean representing true or false.\n"]]