blockly > Events > CommentCollapse

Events.CommentCollapse class

Signature:

export declare class CommentCollapse extends CommentBase 

Extends: CommentBase

Constructors

Constructor Modifiers Description
(constructor)(comment, newCollapsed) Constructs a new instance of the CommentCollapse class

Properties

Property Modifiers Type Description
newCollapsed? boolean | undefined (Optional)
type string

Methods

Method Modifiers Description
run(forward) Run a collapse event.
toJson() Encode the event as JSON.