angular2-json-schema-form
Version:
Angular 2 JSON Schema Form builder
33 lines (28 loc) • 849 B
text/typescript
import {
ChangeDetectorRef, Component, Input, OnChanges, OnInit
} from '@angular/core';
import { FormGroup } from '@angular/forms';
import { JsonSchemaFormService } from '../library/json-schema-form.service';
export class MessageComponent implements OnInit {
private options: any;
private message: string = null;
formID: number;
layoutNode: any;
layoutIndex: number[];
dataIndex: number[];
constructor(
private jsf: JsonSchemaFormService
) { }
ngOnInit() {
this.options = this.layoutNode.options;
this.message = this.options.help || this.options.helpvalue ||
this.options.msg || this.options.message;
}
}