Skip to content

ViewRead

Overview

Read-only detail view that fetches and displays a single model instance identified by its primary key.

Theme entry: ViewRead

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 used to resolve API endpoints and configuration.
pkstringyesPrimary key of the object instance to fetch and display.
primaryActionsarrayundefinedAction names promoted to the filled hero CTA in the action bar; defaults to the update action.

Slots

NameScopedDescription
targetless-action-buttonyes
extra-buttonsAdditional action buttons appended in the page title action area.
action-buttonyesOverride an individual action link button in the sticky bar.
transition-buttonyesOverride an individual workflow transition button in the sticky bar.

Full slot reference

Events

NameDescription
object
loading
related-object
calculated-object
form-object
form-context

Full event reference

Source

client/lib/views/ViewRead.vue

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