A directus extension with @revolist/vue3-datagrid
, specify fixed columns to generate an editable table field.
In your Directus installation root
npm install directus-extension-vgrid
Restart directus
To use this custom interface into a data model, you have to:
- Add a simple field with JSON type
- Config default columns
- Enjoy ! 🎉
[
{
"prop": "time",
"name": "Time"
},
{
"prop": "power",
"name": "Power",
"columnType": "numeric"
}
]
You can also clone this repository and build it by yourself.
npm i
npm run build
Then use index.js
in your custom /extensions/interfaces
directory or in whatever you want.