blockly > Events

Events namespace

Classes

Class Description
BlockBase Abstract class for any event related to blocks.
BlockChange Notifies listeners when some element of a block has changed (e.g. field values, comments, etc).
BlockCreate Notifies listeners when a block (or connected stack of blocks) is created.
BlockDelete Notifies listeners when a block (or connected stack of blocks) is deleted.
BlockDrag Notifies listeners when a block is being manually dragged/dropped.
BlockFieldIntermediateChange Notifies listeners when the value of a block's field has changed but the change is not yet complete, and is expected to be followed by a block change event.
BlockMove Notifies listeners when a block is moved. This could be from one connection to another, or from one location on the workspace to another.
BubbleOpen Class for a bubble open event.
Click Notifies listeners that some blockly element was clicked.
CommentBase Abstract class for a comment event.
CommentChange Notifies listeners that the contents of a workspace comment has changed.
CommentCollapse
CommentCreate Notifies listeners that a workspace comment was created.
CommentDelete Notifies listeners that a workspace comment has been deleted.
CommentMove Notifies listeners that a workspace comment has moved.
FinishedLoading Notifies listeners when the workspace has finished deserializing from JSON/XML.
MarkerMove Notifies listeners that a marker (used for keyboard navigation) has moved.
Selected Class for a selected event. Notifies listeners that a new element has been selected.
ThemeChange Notifies listeners that the workspace theme has changed.
ToolboxItemSelect Notifies listeners that a toolbox item has been selected.
TrashcanOpen Notifies listeners when the trashcan is opening or closing.
UiBase Base class for a UI event. UI events are events that don't need to be sent over the wire for multi-user editing to work (e.g. scrolling the workspace, zooming, opening toolbox categories). UI events do not undo or redo.
VarBase Abstract class for a variable event.
VarCreate Notifies listeners that a variable model has been created.
VarDelete

Notifies listeners that a variable model has been deleted.

VarRename

Notifies listeners that a variable model was renamed.

ViewportChange

Notifies listeners that the workspace surface's position or scale has changed.

Does not notify when the workspace itself resizes.

Abstract Classes

Abstract Class Description
Abstract Abstract class for an event.

Enumerations

Enumeration Description
BubbleType
ClickTarget

Interfaces

Interface Description
AbstractEventJson
BlockBaseJson
BlockChangeJson
BlockCreateJson
BlockDeleteJson
BlockDragJson
BlockFieldIntermediateChangeJson
BlockMoveJson
BubbleOpenJson
ClickJson
CommentBaseJson
CommentChangeJson
CommentCollapseJson
CommentCreateJson
CommentMoveJson
MarkerMoveJson
SelectedJson
ThemeChangeJson
ToolboxItemSelectJson
TrashcanOpenJson
VarBaseJson
VarCreateJson
VarDeleteJson
VarRenameJson
ViewportChangeJson

Variables

Variable Description
BLOCK_CHANGE
BLOCK_CREATE
BLOCK_DELETE
BLOCK_DRAG
BLOCK_FIELD_INTERMEDIATE_CHANGE
BLOCK_MOVE
BUBBLE_OPEN
BUMP_EVENTS
CHANGE
clearPendingUndo
CLICK
COMMENT_CHANGE
COMMENT_CREATE
COMMENT_DELETE
COMMENT_MOVE
CREATE
DELETE
disable
disableOrphans
enable
filter
FINISHED_LOADING
fire
fromJson
get
getDescendantIds
getGroup
getRecordUndo
isEnabled
MARKER_MOVE
MOVE
SELECTED
setGroup
setRecordUndo
THEME_CHANGE
TOOLBOX_ITEM_SELECT
TRASHCAN_OPEN
UI
VAR_CREATE
VAR_DELETE
VAR_RENAME
VIEWPORT_CHANGE

Type Aliases

Type Alias Description
BumpEvent