Stay organized with collections
Save and categorize content based on your preferences.
blockly > IFlyout > isBlockCreatable
IFlyout.isBlockCreatable() method
Does this flyout allow you to create a new instance of the given block? Used for deciding if a block can be "dragged out of" the flyout.
Signature:
isBlockCreatable(block: BlockSvg): boolean;
Parameters
Parameter |
Type |
Description |
block |
BlockSvg |
The block to copy from the flyout. |
Returns:
boolean
True if you can create a new instance of the block, false otherwise.
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 `isBlockCreatable()` method within the `IFlyout` interface determines whether a specific block can be duplicated from the flyout."],["It receives a `BlockSvg` object as input, representing the block to be copied."],["The method returns a boolean value: `true` if a new instance of the block is permitted, `false` otherwise."]]],["The `isBlockCreatable` method determines if a new instance of a specified block can be created from a flyout. It accepts a `BlockSvg` as a parameter, representing the block in question. The method returns a boolean value: `true` if the block can be duplicated from the flyout, and `false` if not. This functionality is used to ascertain whether a block can be dragged from the flyout.\n"]]