ScaffolderRJSFFormProps.onSubmit
Home > @backstage/plugin-scaffolder-react
> ScaffolderRJSFFormProps
> onSubmit
You can pass a function as the onSubmit
prop of your Form
component to listen to when the form is submitted and its data are valid. It will be passed a result object having a formData
attribute, which is the valid form data you're usually after. The original event will also be passed as a second parameter
Signature:
onSubmit?: (data: IChangeEvent<T, S, F>, event: FormEvent<any>) => void;