mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-27 02:03:13 -05:00
feat: Improve auto-form layout (#7150)
This commit is contained in:
@@ -6,11 +6,13 @@ export type FormValidationRule = (value: any) => boolean | string;
|
||||
|
||||
export interface FormSelectOption {
|
||||
text: string;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export interface FormField {
|
||||
section?: string;
|
||||
sectionDetails?: string;
|
||||
cols?: number | "auto";
|
||||
label?: string;
|
||||
hint?: string;
|
||||
varName: string;
|
||||
@@ -19,7 +21,7 @@ export interface FormField {
|
||||
disableUpdate?: boolean;
|
||||
disableCreate?: boolean;
|
||||
options?: FormSelectOption[];
|
||||
selectReturnValue?: string;
|
||||
selectReturnValue?: "text" | "value";
|
||||
}
|
||||
|
||||
export type AutoFormItems = FormField[];
|
||||
|
||||
Reference in New Issue
Block a user