Skip to main content

Interface: RelationEditorProvidedProps

Defined in: widgets/editorForms/editRelationForm.tsx:34

State provided by RelationEditor to nested components.

Properties

PropertyTypeDescription

applyChanges

() => void

Handler to apply changes to the relation, including changes from calling updateData or from RelationTypeSelector.

data

LinkModel

Current (draft) relation data to edit.

linkSource

ElementModel

Data for the current relation source.

linkTarget

ElementModel

Data for the current relation target.

status

"invalid" | "ok" | "validating"

Relation editor status:

  • ok: relation is valid and ready to be submitted;
  • validating: relation is checked whether it can be created or changed to the selected type;
  • invalid: relation cannot be created or changed to the selected type.

updateData

(update) => void

Handler to update current relation data in the property editor.

Note: only relation properties can be changed via update function.