brutusin / json-forms

JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided
http://brutusin.org/json-forms
Apache License 2.0
607 stars 168 forks source link

Example Wanted #82

Open fatbearinc opened 7 years ago

fatbearinc commented 7 years ago

This looks very exciting, but I'm having some issues getting started.

I'd like to be able to read a schema from a file with some initial data from another file and then have the page work. Can someone provide a full index.html to do this?

This would be very useful!

idelvall commented 7 years ago

Hi, you need to have the schema and data loaded as javascript variables. You can load the files by:

Once you have the variables loaded you can follow the steps in the documentation. More examples here (https://github.com/brutusin/json-forms/blob/gh-pages/index.html)