Constructor

FinishedLoading

new FinishedLoading(workspace)

Class for a finished loading event. Used to notify the developer when the workspace has finished loading (i.e domToWorkspace). Finished loading events do not record undo or redo.

Parameter

workspace

Blockly.Workspace

The workspace that has finished loading.

Value must not be null.

Properties

group

string

The event group id for the group this event belongs to. Groups define events that should be treated as an single action from the user's perspective, and should be undone together.

type

string

Type of this event.

workspaceId

string

The workspace identifier for this event.

Methods

fromJson

fromJson(json)

Decode the JSON event.

Parameter

json

Object

JSON representation.

Value must not be null.

toJson

toJson() returns Object

Encode the event as JSON.

Returns

non-null Object JSON representation.