Skip to content

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

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
appstringyesDjango app label that owns the model.
modelstringyesDjango model name the action belongs to.
pkstring|number|arrayundefinedPrimary key(s) of the object(s) to act on; pass an array for multi-object actions.
actionstringyesName of the action to execute.
titlestringundefinedPage title override; defaults to a formatted combination of the action and model names.
initialFormValuesobjectundefinedInitial field values pre-populated into the action form.

Slots

return-button

Scoped slot.

Bindings

NameDescription
label

default

Scoped slot.

Bindings

NameDescription
action
app
form-context
model
pk

Source

client/lib/views/ViewAction.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2