blockly > Events > CommentChange
Events.CommentChange 類別
通知監聽器,工作區註解的內容已變更。
Signature:
export declare class CommentChange extends CommentBase
擴充: CommentBase
建構函式
建構函式 | 修飾符 | 說明 |
---|---|---|
(constructor)(opt_comment, opt_oldContents, opt_newContents) | 建構 CommentChange 類別的新例項 |
屬性
屬性 | 修飾符 | 類型 | 說明 |
---|---|---|---|
newContents_? | 字串 | (選用) 留言的新內容。 | |
oldContents_? | 字串 | (選用) 註解的先前內容。 | |
type | EventType |
方法
方法 | 修飾符 | 說明 |
---|---|---|
isNull() | 此事件是否會記錄任何狀態變更? | |
run(forward) | 執行變更事件。 | |
toJson() | 將事件編碼為 JSON。 |