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."],[[["\u003cp\u003eThe \u003ccode\u003eisClickableInFlyout\u003c/code\u003e method determines if an icon on a block should be clickable when the block is located within a flyout.\u003c/p\u003e\n"],["\u003cp\u003eBy default, icons are clickable in flyouts unless this method is defined and returns \u003ccode\u003efalse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe method takes a boolean argument, \u003ccode\u003eautoClosingFlyout\u003c/code\u003e, indicating whether the flyout automatically closes after an item is selected.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a boolean value representing whether the icon should be clickable within the flyout context.\u003c/p\u003e\n"]]],["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"],null,["[blockly](./blockly.md) \\\u003e [IIcon](./blockly.iicon_interface.md) \\\u003e [isClickableInFlyout](./blockly.iicon_interface.isclickableinflyout_1_methodsignature.md)\n\nIIcon.isClickableInFlyout() method\n----------------------------------\n\nCheck 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.\n\n**Signature:** \n\n isClickableInFlyout?(autoClosingFlyout: boolean): boolean;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-------------------|---------|-------------------------------------------------------|\n| autoClosingFlyout | boolean | true if the containing flyout is an auto-closing one. |\n\n**Returns:**\n\nboolean\n\nWhether the icon should be clickable while the block is in a flyout."]]