Appearance
Providers
You can have a sneakpeak of the provider functionality at Demo
Providers are built in functionalities of CRUD. Are mean to be a route with all in to be used as a plugin and play with adjust of a simple configuration.
It is being design to be used like:
const createProductRoute = createRoute({
name: "createProduct",
path: "/product",
resource: "https://jsonplaceholder.typicode.com/posts",
page: {
type: "create",
title: "Create a New Product",
description: "We are gonna use cars for the example",
},
options: {
formOptions: {...}
},
});
and so add it to you routes
array at Router
config, and its ready for use.
Prop | Type | name | Required |
---|---|---|---|
name | string | The name to be passe to the Vue Router object | yes |
path | string | The path to be setup to the Vue Router object | yes |
resource | string | The endpoint to be setup at the resource | yes |
page | object | Configuration object fo the page | yes |
page.title | string | Title of the page | yes |
page.description | string | description message above the title of the page | no |
page.type | string | The type of the page to be create. Must be one of create , read ,update or delete . | yes |
options | object | Configuration object fo the form | yes |
options.formOptions | FormOptions | Configuration of the form on the page. The formOptions prop follows the Form component. | ? |
Status
Provider | Status |
---|---|
Create | In progress |