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.



// router.ts or main.ts

import { CAdminEditorPage } from 'coalesce-vue-vuetify';

const router = new Router({
    // ...
    routes: [
        // ... other routes
            path: '/admin/:type/edit/:id?',
            name: 'coalesce-admin-item',
            component: CAdminEditorPage,
            props: true,


type: string
The PascalCase name of the type to be created/edited.
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.