UNPKG

724 BTypeScriptView Raw
1import { Validator } from "./form-field-validator.model";
2export declare class FieldConfig {
3 id: number;
4 type: "group" | "array" | "control";
5 name: string;
6 subtype: string;
7 disabled?: boolean;
8 title: string;
9 parentType?: "array" | "group";
10 formGroupPath?: string;
11 path?: string;
12 inputType: "select" | "text" | "number" | "email" | "color" | "checkbox" | "table";
13 value?: any;
14 order?: number;
15 width?: number;
16 options: {
17 [key: string]: string | number | boolean;
18 }[];
19 dataEndpoint?: string;
20 optionsEndpoint: string;
21 fields?: FieldConfig[];
22 validator: Validator;
23 constructor(type: "group" | "array" | "control");
24}