angular2-json-schema-form
angular2-json-schema-form copied to clipboard
onChange support for input field?
I saw this: https://github.com/json-schema-form/angular-schema-form/blob/development/docs/index.md#onchange. Will it be supported in this library?
It's already supported, you need to provide a callback in your component that uses json-schema-form. Example ` <json-schema-form framework="bootstrap-4" loadExternalAssets="true" [schema]="schema" [layout]="layout" [(data)]="model" (onChanges)="onChanges($event)" (onSubmit)="onSubmit($event)" (isValid)="isValid($event)" (validationErrors)="validationErrors($event)"
`
And in your component:
onChanges($event: any) { // Do something here }