Implementing handcrafted forms can be:
- Costly
- Time-consuming
Especially if you need to create a very large form, in which the inputs are similar to each other, and they change frequently to meet rapidly changing business and regulatory requirements.
So, wouldn't it be more economical to create the forms dynamically? Based on metadata that describes the business object model?
That's Vue Dynamic Forms.
Complete documentation and examples available at
$ npm install @asigloo/vue-dynamic-forms
or if you prefer yarn
$ yarn add @asigloo/vue-dynamic-forms
Register the component globally in your main.js
:
import Vue from 'vue';
import VueDynamicForms from '@asigloo/vue-dynamic-forms';
Vue.use(VueDynamicForms);
You can include the dynamic form directly to your component.
import Vue from 'vue';
import { DynamicForm } from '@asigloo/vue-dynamic-forms';
const components = { DynamicForm };
export {
...
components,
...
}
yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint
yarn run test:unit
If you find this library useful and you want to help improve it, maintain it or just want a new feature, feel free to contact me, or feel free to do a PR 😁.
This are the features I have planned for next versions of this library
- Material theme
- Form Mixins for fields manipulation (for example, change values of a field depending of other)
- More complex input types.
- Nuxt plugin istall
- Better docs & online examples
This project is licensed under the MIT License - see the LICENSE.md file for details.