json-forms icon indicating copy to clipboard operation
json-forms copied to clipboard

Missing example how to "extend and customize"

Open nebulaszlonemethi opened this issue 8 years ago • 3 comments

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.

nebulaszlonemethi avatar Oct 17 '16 06:10 nebulaszlonemethi

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 avatar Feb 07 '17 15:02 fabifabi

@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.

graciano avatar Feb 07 '17 17:02 graciano

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...

idelvall avatar Feb 07 '17 17:02 idelvall