UNPKG

ngx-schema-forms

Version:

New features: - Ajv schema validator. - Angular forms compatible: Property tree is created using FormGroup, FormArray and FormControl classes. - Array now properly loads initial data from model. - WidgetTyep: WidgetRegistry now supports WidgetType, now wo

15 lines (14 loc) 481 B
export declare enum WidgetType { Field = "field", Fieldset = "fieldset", Button = "button", } export declare class WidgetRegistry { private widgets; private defaultWidget; setDefaultWidget(widget: any, type?: WidgetType): void; getDefaultWidget(type?: WidgetType): any; hasWidget(id: string, type?: WidgetType): boolean; register(id: string, widget: any, type?: WidgetType): void; getWidgetType<T = any>(id: string, type?: WidgetType): T; }