FormPropsinterface
{
schema: DataSchema<T>;
data?: PartialData<T> | undefined;
submit?: ReactNode | undefined;
onSubmit?: FormCallback<T> | undefined;
messages?: ImmutableDictionary<string> | string | undefined;
}| Property | Type | |
|---|---|---|
.schema | DataSchema<T> | Schema for the form. required |
.data | PartialData<T> | Initial data for the form. |
.submit | ReactNode | Content of the submit button. |
.onSubmit | FormCallback<T> | Optional function called when the form is submitted. Takes the current (validated) value of the form, processes it (possibly asynchronously) and returns any new values to set in the form. |
.messages | ImmutableDictionary<string>string | Initial set of messages for the form as either a dictionary or a string with fieldName: style messages. |
Props for Form, the schema-driven form wrapper component.