Skip to content

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

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.


Coalesce is a free and open-source framework created by IntelliTect to fill our desire to create better apps, faster. IntelliTect is a high-end software architecture and development consulting firm based in Spokane, Washington.

If you're looking for help with your software project, whether it be a Coalesce application, other technologies, or even just an idea, reach out to us at info@intellitect.com — we'd love to start a conversation! Our clients range from Fortune 100 companies to local small businesses and non-profits.