Knarfux

Results 15 comments of Knarfux

WidgetControl class implements the ngAfterViewInit hook. Does calling super.ngAfterViewInit in your hook solves the problem?

Hi @lzoubek, if your widget override the ngAfterViewInit method, it must call the base implementation which sets up the error propagation.

Hello there. @raphaelkoszalka, if you have extended the SchemaValidatorFactory class it shouldn't be hard to integrate tv4 in angular2-schema-form. Currently, the ZSchemaValidatorFactory is hard coded in the FormComponent but it...

Until it is implemented, you can resolve the $ref properties by compiling your schema with ZSchema:``` ``` js let zschema = new ZSchema({}); zschema.compileSchema(mySchema); mySchema = zschema.getResolvedSchema(mySchema); ``` but note...

You can put your schema-form component in a *ngIf="schema !== null" and update the schema variable when the user clicks the "Generate" button.

With your example, changing `*ngIf="schema !== null"` by `*ngIf="jsonSchemaForm !== null"` should work if you initialize `jsonSchemaForm` to null in you component's constructor. If it is not working try moving...

You can create your own widgets using the path property as description but adding a description to your properties in your schema should be a lot easier.

Note that the draft6 of the json schema's spec introduce a new 'const' keyword which can be used for this purpose: { "type": "object", "cons"t: { "firstname": "John", "lastname": "Doe"...

The currently supported version is draft-04.

The above configuration should work and does not need AOT compilation. Have you added the SchemaFormModule to the `imports` section of your `app.module.ts` (or equivalent) ? ```typescript import { BrowserModule...