blockly > 事件 > CommentDrag > (建構函式)
Events.CommentDrag.(constructor)
建構 CommentDrag 類別的新例項
Signature:
constructor(opt_comment?: WorkspaceComment, opt_isStart?: boolean);
參數
| 參數 | 類型 | 說明 |
|---|---|---|
| opt_comment | WorkspaceComment | (選用) 要拖曳的註解。空白事件未定義。 |
| opt_isStart | 布林值 | (選用) 是否為留言拖曳的起點。空白事件未定義。 |