]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-form-modal-field-config.ts
bump version to 15.2.4-pve1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / models / cd-form-modal-field-config.ts
1 import { ValidatorFn } from '@angular/forms';
2
3 export class CdFormModalFieldConfig {
4 name: string;
5 // 'binary' will use cdDimlessBinary directive on input element
6 // 'select' will use select element
7 type: 'number' | 'text' | 'binary' | 'select';
8 label?: string;
9 required?: boolean;
10 value?: any;
11 errors?: { [errorName: string]: string };
12 validators: ValidatorFn[];
13 // only for type select
14 placeholder?: string;
15 options?: Array<{
16 text: string;
17 value: any;
18 }>;
19 }