- useForm(): {
disableForm: (() => void);
enableForm: (() => void);
hideConfirmation: (() => void);
hideConfirmationAfterSubmit: ((submitFn: (() => Promise<void>)) => Promise<void>);
isConfirmationShown: Ref<boolean>;
isFormDisabled: Ref<boolean>;
isFormPending: Ref<boolean>;
showConfirmation: (() => void);
}
-
Returns {
disableForm: (() => void);
enableForm: (() => void);
hideConfirmation: (() => void);
hideConfirmationAfterSubmit: ((submitFn: (() => Promise<void>)) => Promise<void>);
isConfirmationShown: Ref<boolean>;
isFormDisabled: Ref<boolean>;
isFormPending: Ref<boolean>;
showConfirmation: (() => void);
}
-
disableForm: (() => void)
-
enableForm: (() => void)
-
hideConfirmation: (() => void)
-
hideConfirmationAfterSubmit: ((submitFn: (() => Promise<void>)) => Promise<void>)
-
- (submitFn: (() => Promise<void>)): Promise<void>
-
Parameters
-
submitFn: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
Returns Promise<void>
-
isConfirmationShown: Ref<boolean>
-
isFormDisabled: Ref<boolean>
-
isFormPending: Ref<boolean>
-
showConfirmation: (() => void)