blockly > Events > CommentDrag

Events.CommentDrag 類別

在使用者手動拖曳/放置留言時通知監聽器。

Signature:

export declare class CommentDrag extends UiBase 

擴充: UiBase

建構函式

建構函式 修飾符 說明
(constructor)(opt_comment, opt_isStart) 建構 CommentDrag 類別的新例項

屬性

屬性 修飾符 類型 說明
commentId? 字串 (選用) 要拖曳的頂層留言 ID。
isStart? 布林值 (選用) 如果是拖曳動作的開始,則為 true;如果是結束,則為 false。
type EventType

方法

方法 修飾符 說明
toJson() 將事件編碼為 JSON。