useViewDestroy
Overview
Provides instance deletion support for a view screen.
Internally loads the instance(s) matching the provided pk, then exposes a handleDelete function that can perform bulk deletion and report errors.
Signature
useViewDestroy(props)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| props | object | yes | The reactive props object. |
props Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| app | string | |||
| model | string | |||
| pk | string | string[] |
Returns
An object containing reactive state and the handleDelete function.
Source
client/lib/use/useViewDestroy.js:36