You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfields=['name:name|label:Nome|text','name:e-mail|email','name:photo|label:Profile picture|multiple|file','name:bio|textarea','name:gender|options:male,female','name:birthday|input|type=date','name:fruits|label:Pick fruits|checkboxes|options:apple,banana,orange,avocado','name:agree|checkbox|label:Agree to terms and conditions','component:vfb-buttons|class=right|submitText=SALVAR|label:none',]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to share this Vue plugin that automatically builds forms via declarative rules.
https://github.com/uwla/vue-form-builder
It is free open source software. Feel free do ask questions, give suggestions, create issues and contribute via PRs.
Features:
demo
A demo app for Vue3 is available in the GitHub Pages of this package: uwla.github.io/vue-form-builder/demo.
There is also another demo, but for Vue2, available on CodeSandbox at live demo and live demo and code.
Example
Sample example:
Which generates the following HTML:
More can be found on the official package repository.
Beta Was this translation helpful? Give feedback.
All reactions