json-forms
json-forms copied to clipboard
Missing example how to "extend and customize"
Hello, it would be nice to provide some example how to customize and extend this library (since it is titled to be extendable and customizable). Eg. if someone wants a different layout for editing "patternProperties" or for editing arrays, or want to add a new plugin for a type.
same for me, i want: -add rgb field, with spectrum.js, if not present, back to html5 rgb. -add gps field,with google map for help selecting it etc.... For now,it is not so complicate to do (just add a type) but it is not very clean in my opinion.... With a plug-in system, it will be more nice! thank.
@fabifabi How would the code look with a plugin system? I'm inclined to agree with you, but I don't have an idea about how we could implement it in a clean way in comparison with what you described.
hi guys you are absolutely right, things should be better documented.
Customization can be done by means of custom decorators and by using (in other cases overriding) some global functions exposed by the API. This is far from ideal but served my needs.
Regarding the plugin system I have some ideas but I would like to listen yours first...