Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SubmitOptions

interface SubmitOptions {
action?: string;
encType?: FormEncType;
method?: FormMethod;
preventScrollReset?: boolean;
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.

Note: It is assumed the path is already resolved. If you need to resolve a relative path, use useFormAction.

§

The action URL used to submit the form. Overrides <form encType>. Defaults to "application/x-www-form-urlencoded".

§

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

§

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

§
replace?: boolean
[src]

Set true to replace the current entry in the browser's history stack instead of creating a new one (i.e. stay on "the same page"). Defaults to false.