FieldAddEventData: {
    data: string | MediaItem | null;
    pos: Point;
    type: FieldAddType;
}

The event data for the BeforeFieldAdd event used before adding fields via the UI.

Type declaration

  • data: string | MediaItem | null

    The data to hold for the field. This depends on the field type.

  • pos: Point

    The position to add the field on the current page.

  • type: FieldAddType

    The field type to be added.

Generated using TypeDoc