Skip to content

ViewSelectedObjectsAction ​

Overview ​

Shared body of ViewActivate and ViewDeactivate: loads the selected objects, contributes the page title, teleports a "Go Back" action into the title action zone, and runs the action through ModelActionForm with a PATCH request. Every attribute, such as tone or confirmText, and every slot passes through to ModelActionForm. The wrapping view owns the root element, its theme key, and the action's defaults.

Props ​

NameTypeRequiredDefaultDescription
appstringyesDjango app label that owns the model.
modelstringyesDjango model name whose instances the action targets.
pkstring|arrayyesPrimary key or array of primary keys identifying the instances to act on.
actionstringyesAction name sent to the server, such as "activate".
titlestringundefinedPage title override, contributed to the layout's PageTitle display. The default title is the start-cased action name followed by the model's verbose name. When pk lists more than one object, the default uses the verbose plural name. The default is empty until the verbose name is known, so the layout shows a skeleton.

Slots ​

return-button ​

Scoped slot.

Bindings ​

NameDescription
label

Source ​

client/lib/views/ViewSelectedObjectsAction.vue