import { EsFormFieldError } from './es-field-error.interface'; import { EsFormAction } from './es-form-action.interface'; import { EsFormFieldOption } from './es-field-option.interface'; /** * type = [autocomplete, button, input, select, datetimepicker ...] + group * label = nahrazuje placeholder u material elementu * name = form.control.name */ export interface EsFormFieldConfig { id?: string; type: string; label: string; name: string; display: boolean; disabled?: boolean; options?: EsFormFieldOption[]; optGroups?: { label: string; disabled: boolean; options: EsFormFieldOption[]; }[]; value?: any; multiple?: boolean; required?: boolean; attr?: {}; actions?: EsFormAction[]; validation?: EsFormFieldError[]; focused?: boolean; width?: number; height?: number; dButton?: { id?: number; display: boolean; }; help?: { id: number; message: string; url: string; }; confirmMessage?: string; children?: EsFormFieldConfig[]; }