c-admin-display

Behaves the same as c-display, except any collection navigation properties will be rendered as links to an admin list page, and any models will be rendered as a link to an admin item page.

Links for collections are resolved from vue-router with a route name of coalesce-admin-list, a type route param containing the name of the collection's type, and a query parameter filter.<foreign key name> with a value of the primary key of the owner of the collection. This route is expected to resolve to a c-admin-table-page, which is setup by default by the template outlined in Getting Started with Vue.

Links for single models are resolved from vue-router with a route name of coalesce-admin-item, a type route param containing the name of the model's type, and a id route param containing the object's primary key. This route is expected to resolve to a c-admin-editor-page, which is setup by default by the template outlined in Getting Started with Vue.

Contents

Examples

<!-- Renders regularly as text: -->
<c-admin-display :model="person" for="firstName" />

<!-- Renders as a link to an item: -->
<c-admin-display :model="person" for="company" />

<!-- Renders as a link to a list: -->
<c-admin-display :model="person" for="casesAssigned" />

Props

Same as c-display.

Slots

Same as c-display.