封鎖 >事件 >BlockDrag
Events.BlockDrag 類別
在手動拖曳/放置區塊時通知事件監聽器。
Signature:
export declare class BlockDrag extends UiBase
擴充: UiBase
建構函式
屬性
屬性 |
修飾符 |
類型 |
說明 |
blockId? |
|
字串 |
(選用) 要拖曳的頂層區塊 ID。 |
該怎麼辦? |
|
封鎖[] |
(選用) 遭到拖曳的所有封鎖區塊清單 (亦即與封鎖 ID 相關的所有子系)。 |
isStart? |
|
布林值 |
(選用) 如果這是拖曳的起點,則為 True,如果這是拖曳的終點,則為 false。 |
類型 |
|
字串 |
|
方法
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-15 (世界標準時間)。
[null,null,["上次更新時間:2024-10-15 (世界標準時間)。"],[[["The `Events.BlockDrag` class in Blockly notifies listeners when a block is manually dragged or dropped."],["It provides information about the dragged block, such as its ID, a list of all descendant blocks being dragged, and whether the event marks the start or end of the drag."],["This class extends the `UiBase` class and can be encoded into JSON format for easy handling."]]],[]]