Skip to content

ViewDestroyState ​

Properties ​

handleDelete ​

Attempts to delete the instance(s) through the list's registered bulkDelete handler. Throws on failure, including a ConfirmationRequiredError when the server gates the delete behind warning acknowledgement (HTTP 409); pass the error's digest back via acknowledgeWarnings to proceed. A dryRun validates only: the request carries the Dry-Run header and the list keeps its rows, so the selection survives the pre-flight.

Type: (options: object) => Promise

Source: client/lib/use/useViewDestroy.js:23

instanceList ​

The list context of instances to destroy.

Type: any

Source: client/lib/use/useViewDestroy.js:20

modelConfig ​

The model config for the current app/model.

Type: any

Source: client/lib/use/useViewDestroy.js:19

pageLoading ​

Combined loading state (model config + the fetch of the records being confirmed).

Type: ComputedRef

Source: client/lib/use/useViewDestroy.js:22

titleStr ​

Page title for the confirmation, counted and pluralized for a bulk destroy (e.g. "Delete Widget", "Delete 3 Widgets"). Empty until the verbose name is known. A bulk destroy reads the verbose plural name.

Type: ComputedRef

Source: client/lib/use/useViewDestroy.js:21

validAndActive ​

Whether the current context has a valid app/model/pk and is active.

Type: boolean

Source: client/lib/use/useViewDestroy.js:18

Source ​

client/lib/use/useViewDestroy.js:16