ViewAction
Overview
Full-page view for executing a model action. Renders a page title with a "Go Back" button and embeds a ModelActionForm for the specified app, model, and action. Accepts an optional primary key and initial form values to pre-populate the form.
Theme entry: ViewAction
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| themeOverride | String|Object|Array | null | A partial theme object merged with the component's default theme; accepts a class string, class array, or theme object. | |
| app | string | yes | Django app label that owns the model. | |
| model | string | yes | Django model name the action belongs to. | |
| pk | string|number|array | undefined | Primary key(s) of the object(s) to act on; pass an array for multi-object actions. | |
| action | string | yes | Name of the action to execute. | |
| title | string | undefined | Page title override; defaults to a formatted combination of the action and model names. | |
| initialFormValues | object | undefined | Initial field values pre-populated into the action form. |
Slots
return-button
Scoped slot.
Bindings
| Name | Description |
|---|---|
| label |
default
Scoped slot.
Bindings
| Name | Description |
|---|---|
| action | |
| app | |
| form-context | |
| model | |
| pk |
Source
client/lib/views/ViewAction.vue