研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly > IFlyout > isBlockCreatable
IFlyout.isBlockCreatable() 方法
此动作条是否允许您创建给定代码块的新实例?用于确定是否可以将某个块“拖出”动作条。
Signature:
isBlockCreatable(block: BlockSvg): boolean;
参数
返回:
布尔值
如果您可以创建该代码块的新实例,则返回 true;否则,返回 false。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-22。
[null,null,["最后更新时间 (UTC):2024-11-22。"],[[["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."]]],[]]