c-admin-editor-page
A page for a creating/editing single ViewModel instance. Provides a c-admin-editor and a c-admin-methods for the instance. Designed to be routed to directly with vue-router.
Examples
ts
// router.ts or main.ts
// WITHOUT Vuetify A la carte:
import { CAdminEditorPage } from 'coalesce-vue-vuetify';
// WITH Vuetify A-la-carte:
import { CAdminEditorPage } from 'coalesce-vue-vuetify/lib';
const router = new Router({
// ...
routes: [
// ... other routes
{
path: '/admin/:type/edit/:id?',
name: 'coalesce-admin-item',
component: CAdminEditorPage,
props: true,
},
]
})
Props
type: string
type: string
The PascalCase name of the type to be created/edited.
id?: number | string
id?: number | string
The primary key of the item being edited. If null or not provided, the page will be creating a new instance of the provided type
instead.