Skip to content

@serenity-is/corelib / DialogAddonContext

Interface: DialogAddonContext

Defined in: src/ui/dialogs/dialogaddons.tsx:55

What a component of an addon gets: the dialog, the addon, and the record of the dialog.

Properties

addon

addon: DialogAddon

Defined in: src/ui/dialogs/dialogaddons.tsx:59

The addon, as its source gave it.


dialog

dialog: EntityDialog<any, any>

Defined in: src/ui/dialogs/dialogaddons.tsx:57

The entity dialog.


entity

entity: any

Defined in: src/ui/dialogs/dialogaddons.tsx:65

The record of the dialog, with the values that are being edited.


entityId

entityId: any

Defined in: src/ui/dialogs/dialogaddons.tsx:63

The ID of the record of the dialog, or null for a new one.


entityType

entityType: string

Defined in: src/ui/dialogs/dialogaddons.tsx:61

The entity type of the dialog, e.g. "Northwind.Order".


options

options: Record<string, any>

Defined in: src/ui/dialogs/dialogaddons.tsx:67

The options of the addon, with the placeholders of the fields of the record filled.