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
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
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.
record-nameyesOverride the heading that names the record above the fields; receives recordName (the fetched object's formatted name, empty when there is none) and pending (true while the name is loading).

Full slot reference

Events ​

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

Full event reference

Source ​

client/lib/views/ViewRead.vue