blockly > Events > Selected

Events.Selected class

Class for a selected event. Notifies listeners that a new element has been selected.


export declare class Selected extends UiBase 

Extends: UiBase


Constructor Modifiers Description
(constructor)(opt_oldElementId, opt_newElementId, opt_workspaceId) Constructs a new instance of the Selected class


Property Modifiers Type Description
newElementId? string (Optional) The id of the newly selected selectable element, or undefined if unselected.
oldElementId? string (Optional) The id of the last selected selectable element.
type string


Method Modifiers Description
toJson() Encode the event as JSON.