Skip to content

Instantly share code, notes, and snippets.

@zzpzaf
Created April 18, 2024 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzpzaf/805b094398a5aa08133354dbfd821872 to your computer and use it in GitHub Desktop.
Save zzpzaf/805b094398a5aa08133354dbfd821872 to your computer and use it in GitHub Desktop.
dynamicform1_IFormField interface_c11
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