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
606 stars 168 forks source link

How can I add an `id` or `class` to an input? #119

Open wishinghand opened 6 years ago

wishinghand commented 6 years ago

I'd like to be able to define that a form element have its own id or class in the schema so it can be styled by CSS upon rendering. Is this functionality already included?

This would be similar to how https://github.com/vue-json-schema/form-schema has an attrs object for each input that lets HTML attributes be added, like name, id, class, max, min, etc.