blockly > IFlyout > isBlockCreatable
IFlyout.isBlockCreatable() 方法
這個彈出式視窗是否可讓您建立指定區塊的新例項?用於決定區塊是否可以「拖離」彈出式視窗。
Signature:
isBlockCreatable(block: BlockSvg): boolean;
參數
退貨:
布林值
如果可以建立區塊的新例項,則傳回「是」;否則傳回「否」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-22 (世界標準時間)。
[null,null,["上次更新時間: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."]]],[]]