UNPKG

angular-dynamic-forms-lite

Version:
36 lines (35 loc) 1.22 kB
import { DynamicFormType } from "../../form-field/form-field-type"; import { FormFieldComponentType } from "../../form-field/form-field-component"; import { InlineSetting } from "../../form-settings/inline-setting"; import { SubType } from "../../form-settings/sub-type"; /** * See InlineOptions */ export interface InlineOptionsChild extends InlineOptions { } export declare type InlineValueOrType = DynamicFormType | SubType | FormFieldComponentType | InlineOptionsChild | InlineForm; /** * Describes the options of a form field using a two or three dimensional array. * It has the following structure: * * [name or inline setting, component or child options , ?componentType] * * Examples: * * ["name", DynamicFormType.SINGLE] * * ["group", { * child1: ["Child 1", DynamicFormType.SINGLE], * child1: ["Child 2", DynamicFormType.SINGLE] * }, GroupComponent] * * ["array", ["Child 1", DynamicFormType.SINGLE]], ArrayComponent] * */ export declare type InlineOptions = [string | InlineSetting, InlineValueOrType, FormFieldComponentType?]; /** * Describes an inline form where the model and form field settings are used together. */ export interface InlineForm { [key: string]: InlineOptions; }