DynamicForm
This component provides a dynamic form component Developer can pass a json structure and it will create a form component
Installation
Properties
formStructure
FormSectionProps[]
beforeSubmit
(data: IFormData) => Promise
onSubmit
(data: IFormData) => Promise
onCancel
() => void
submitButtonLabel
string
submitButtonLoadingLabel
string
cancelButtonLabel
string
hideCancelButton
boolean
isLoading
boolean
formContainerStyles
React.CSSProperties
renderOptions
{ renderStyle: 'standard' | 'tabs' | 'wizard', direction?: 'vertical' | 'horizontal' // only applicable to tabs and wizard tabBackgroundColor?: string, tabTextColor?: string, activeTabBackgroundColor?: string, activeTabTextColor?: string, errorTabBackgroundColor?: string, errorTabTextColor?: string, disabledTabBackgroundColor?: string, disabledTabTextColor?: string, previousButtonLabel?: string, nextButtonLabel?: string }
formStructure
FormSectionProps[]
beforeSubmit
(data: IFormData) => Promise
onSubmit
(data: IFormData) => Promise
onCancel
() => void
submitButtonLabel
string
submitButtonLoadingLabel
string
cancelButtonLabel
string
hideCancelButton
boolean
isLoading
boolean
formContainerStyles
React.CSSProperties
renderOptions
{ renderStyle: 'standard' | 'tabs' | 'wizard', direction?: 'vertical' | 'horizontal' // only applicable to tabs and wizard tabBackgroundColor?: string, tabTextColor?: string, activeTabBackgroundColor?: string, activeTabTextColor?: string, errorTabBackgroundColor?: string, errorTabTextColor?: string, disabledTabBackgroundColor?: string, disabledTabTextColor?: string, previousButtonLabel?: string, nextButtonLabel?: string }
Last updated