blockly > [イベント] > [CommentCreate]

Events.CommentCreate クラス

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

署名:

export declare class CommentCreate extends CommentBase 

拡張: CommentBase

コンストラクタ

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

プロパティ

プロパティ 修飾子 タイプ 説明
json? comments.State (省略可)作成されたワークスペース コメントの JSON 表現。
タイプ string
xml? 要素 | DocumentFragment (省略可)作成されたワークスペースのコメントの XML 表現。

メソッド

メソッド 修飾子 説明
run(forward) 作成イベントを実行する。
toJson() イベントを JSON としてエンコードします。