Stay organized with collections Save and categorize content based on your preferences.

blockly > Events > Ui > (constructor)


Constructs a new instance of the Ui class


constructor(opt_block?: Block | null, opt_element?: string, opt_oldValue?: any, opt_newValue?: any);


Parameter Type Description
opt_block Block | null (Optional) The affected block. Null for UI events that do not have an associated block. Undefined for a blank event.
opt_element string (Optional) One of 'selected', 'comment', 'mutatorOpen', etc.
opt_oldValue any (Optional) Previous value of element.
opt_newValue any (Optional) New value of element.