Stay organized with collections
Save and categorize content based on your preferences.
blockly > Field > isClickableInFlyout
Field.isClickableInFlyout() method
Check whether the field should be clickable while the block is in a flyout. The default is that fields are clickable in always-open flyouts such as the simple toolbox, but not in autoclosing flyouts such as the category toolbox. Subclasses may override this function to change this behavior. Note that isClickable
must also return true for this to have any effect.
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 field 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 a field within a block can be clicked while the block is inside a flyout."],["By default, fields are clickable in flyouts that are always open, but not in flyouts that auto-close, unless overridden by subclasses."],["This method takes a boolean parameter `autoClosingFlyout` indicating whether the flyout is auto-closing, and returns a boolean indicating if the field is clickable."],["The `isClickable` property must also be true for `isClickableInFlyout` to have an effect on field clickability."]]],[]]