Created
April 18, 2024 14:30
-
-
Save zzpzaf/805b094398a5aa08133354dbfd821872 to your computer and use it in GitHub Desktop.
dynamicform1_IFormField interface_c11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type standardInputType = | |
| 'color' | |
| 'checkbox' | |
| 'date' | |
| 'datetime-local' | |
| 'email' | |
| 'month' | |
| 'number' | |
| 'password' | |
| 'radio' | |
| 'search' | |
| 'tel' | |
| 'text' | |
| 'submit' | |
| 'time' | |
| 'url' | |
| 'week'; | |
export interface IFormOptions { | |
[key: string]: any; | |
optionKey: number | string; | |
optionValue: any; | |
order?: number; | |
isOptionSelected?: boolean; | |
} | |
export interface IFormField { | |
[key: string]: any; | |
dataField?: string; | |
controlName: string; | |
controlType: string; | |
fieldLabel: string; | |
inputType?: standardInputType; | |
readOnly?: boolean; | |
initialValue?: any | any[]; | |
options?: IFormOptions[]; | |
multipleOptions?: boolean; | |
promptText?: string; | |
optionsSize?: number; | |
minValue?: number; | |
maxValue?: number; | |
stepValue?: number; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment