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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| app | string | yes | Django app label that owns the model. | |
| model | string | yes | Django model name whose instances the action targets. | |
| pk | string|array | yes | Primary key or array of primary keys identifying the instances to act on. | |
| action | string | yes | Action name sent to the server, such as "activate". | |
| title | string | undefined | Page 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
| Name | Description |
|---|---|
Source
client/lib/views/ViewSelectedObjectsAction.vue