blockly > [Events] > [CommentChange]

Events.CommentChange クラス

ワークスペースのコメントの内容が変更されたことをリスナーに通知します。

署名:

export declare class CommentChange extends CommentBase 

拡張: CommentBase

コンストラクタ

コンストラクタ 修飾子 説明
(constructor)(opt_comment, opt_oldContents, opt_newContents) CommentChange クラスの新しいインスタンスを作成します。

プロパティ

プロパティ 修飾子 種類 説明
newContents_? string (省略可)コメントの新しいコンテンツ。
oldContents_? string (省略可)コメントの以前の内容。
タイプ string

Methods

メソッド 修飾子 説明
isNull() このイベントには状態の変化が記録されていますか?
run(forward) 変更イベントを実行する。
toJson() イベントを JSON としてエンコードします。