1 import { ValidatorFn } from '@angular/forms';
3 export class CdFormModalFieldConfig {
4 // --- Generic field properties ---
6 // 'binary' will use cdDimlessBinary directive on input element
7 // 'select' will use select element
8 type: 'number' | 'text' | 'binary' | 'select' | 'select-badges';
12 errors?: { [errorName: string]: string };
13 validators: ValidatorFn[];
15 // --- Specific field properties ---
20 // placeholder?: string;
28 // customBadges: boolean;
29 // options: Array<SelectOption>;
30 // messages: SelectMessages;