Skip to main content

Home > 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

ParameterTypeDescription
autoClosingFlyoutbooleantrue if the containing flyout is an auto-closing one.

Returns:

boolean

Whether the icon should be clickable while the block is in a flyout.