use/useConfirmationController
Overview
Factory for the reactive controller behind submit-time warning confirmation dialogs (server confirm-then-save, HTTP 409). Shared by useObjectForm and useActionForm.
Methods
- useConfirmationController - Creates a ConfirmationController.
Types
ConfirmationController
FieldWarnings
Warnings keyed by field (non_field_errors for messages not tied to a field).
FieldWarnings = object
WarningsMapping
Either the flat FieldWarnings shape, or keyed by object id with each value a FieldWarnings mapping for that object.
WarningsMapping = FieldWarnings | object
Source
client/lib/use/useConfirmationController.js:1