mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
619 B
27 lines
619 B
export enum FormBuilderInputType { |
|
Input = 'input', |
|
Select = 'select', |
|
Switch = 'switch', |
|
Space = 'space', |
|
Password = 'password', |
|
} |
|
|
|
export interface FormBuilderElement { |
|
type: FormBuilderInputType |
|
model?: string |
|
defaultValue?: string |
|
label?: string |
|
placeholder?: string |
|
width?: number |
|
category?: string |
|
helpText?: string |
|
required?: boolean |
|
// used for select type |
|
options?: { value: string; label: string }[] |
|
// used for styling switch |
|
border?: boolean |
|
} |
|
|
|
export type FormDefinition = FormBuilderElement[] |
|
|
|
export const FORM_BUILDER_NON_CATEGORIZED = 'form-builder-non-categorized'
|
|
|