blockly > Events > Ui > (constructor)
Events.Ui.(constructor)
Constructs a new instance of the Ui
class
Signature:
constructor(opt_block?: Block | null, opt_element?: string, opt_oldValue?: any, opt_newValue?: any);
Parameters
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. |