---
url: "https://vueda.dev/v3/reference/api/vue/ViewSelectedObjectsAction.md"
title: "ViewSelectedObjectsAction"
---

# 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 |
| --- | --- | --- | --- | --- |
| <span id="prop-app">app</span> | `string` | yes |  | Django app label that owns the model. |
| <span id="prop-model">model</span> | `string` | yes |  | Django model name whose instances the action targets. |
| <span id="prop-pk">pk</span> | `string\|array` | yes |  | Primary key or array of primary keys identifying the instances to act on. |
| <span id="prop-action">action</span> | `string` | yes |  | Action name sent to the server, such as `"activate"`. |
| <span id="prop-title">title</span> | `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` {#slot-return-button}

Scoped slot.

#### Bindings

| Name | Description |
| --- | --- |
| <span id="slot-return-button-param-label">label</span> |  |

## Source

`client/lib/views/ViewSelectedObjectsAction.vue`
