How do I create a custom widget in angular2-json-schema-form

1.7k views Asked by At

Has anyone managed to create custom widgets and layouts for form controls using angular2-json-schema-form? I cannot find links to any documentation or examples.

1

There are 1 answers

1
Nuri Hodges On

In their documentation it indicates that you can create your own json-schema-form components/widgets and pass a mapping of them to the json-schema-form directive, thereby either creating your own form controls or overriding the defaults.

Here is the source for the TEXTAREA component/widget as a reference for how to create your own form control.