Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog with any desired forms (JSON/Schema based) #116

Open
husayt opened this issue Dec 2, 2020 · 0 comments
Open

Dialog with any desired forms (JSON/Schema based) #116

husayt opened this issue Dec 2, 2020 · 0 comments

Comments

@husayt
Copy link

husayt commented Dec 2, 2020

This is a feature request which would fit very nicely with vuetify-dialog.

Currently it's possible to get dialogs with only standard one textfield forms with this library. Often one needs to display a dialog with more fields or more options. This is surprisinly easy to implement.

We can use either vuetify-jsonschema-form or Vuetify-Form-Base to generate a Vuetify form from json/json schema. Then to integrate one would just need to place either of the components and pass an input json and return changed json data as a result.

So it would allow to pass data as json (and optionally schema) to get a dialog with any form:

this.$dialog.form({
  json: {},
  schema: {},
  title: 'Sample form'
})

This would allow for any kind of input scenarios and would make this already useful library so much more cooler.

PS. It would be great if use of forms could be optional and would allow for either of the libraries, as both have their own merits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant