MegaEditEventObject: {
    data: EventDataVariants;
    type: EditorEventType | FieldEventType;
    preventDefault() => void;
    stopPropagation() => void;
}

The event object is available to control the event flow. It has methods to cancel the default action and stop event propagation.

Type declaration

  • data: EventDataVariants

    The event data.

  • type: EditorEventType | FieldEventType

    The type of the event.

  • preventDefault:function
    • Call this method to stop the default behaviour. This means that the action will not be performed.

      Returns void

  • stopPropagation:function
    • Call this method to stop propagration. Subsequent scripts will not receive this event.

      Returns void

Generated using TypeDoc