SubmitOptions
interface SubmitOptions {
action?: string;
encType?: FormEncType;
method?: HTMLFormMethod;
preventScrollReset?: boolean;
relative?: RelativeRoutingType;
replace?: boolean;
}§Properties
§
action?: string
[src]The action URL path used to submit the form. Overrides <form action>
.
Defaults to the path of the current route.
§
encType?: FormEncType
[src]The encoding used to submit the form. Overrides <form encType>
.
Defaults to "application/x-www-form-urlencoded".
§
method?: HTMLFormMethod
[src]The HTTP method used to submit the form. Overrides <form method>
.
Defaults to "GET".
§
preventScrollReset?: boolean
[src]In browser-based environments, prevent resetting scroll after this navigation when using the component
§
relative?: RelativeRoutingType
[src]Determines whether the form action is relative to the route hierarchy or the pathname. Use this if you want to opt out of navigating the route hierarchy and want to instead route based on /-delimited URL segments