Skip to main content

Home > blockly > Events > Abstract

Events.Abstract class

Abstract class for an event.

Signature:

export declare abstract class Abstract 

Constructors

ConstructorModifiersDescription
(constructor)()Constructs a new instance of the Abstract class

Properties

PropertyModifiersTypeDescription
groupstringAn ID for the group of events this block is associated with. Groups define events that should be treated as an single action from the user's perspective, and should be undone together.
isBlankabstractbooleanWhether or not the event was constructed without necessary parameters (to be populated by fromJson).
isUiEventbooleanWhether or not the event is a UI event.
recordUndobooleanWhether this event is undoable or not.
typestringType of this event.
workspaceId?string(Optional) The workspace identifier for this event.

Methods

MethodModifiersDescription
getEventWorkspace_()Get workspace the event belongs to.
isNull()Does this event record any change of state?
run(_forward)Run an event.
toJson()Encode the event as JSON.