Options that may be specified when creating a form.
API
interface FormOptions<TModel> { injector?: Injector | undefined; name?: string | undefined; submission?: FormSubmitOptions<TModel> | undefined;}
injector
Injector | undefinedThe injector to use for dependency injection. If this is not provided, the injector for the current injection context, will be used.
name
string | undefinedThe name of the root form, used in generating name attributes for the fields.
submission
FormSubmitOptions<TModel> | undefinedOptions that define how to handle form submission.
Jump to details