import { djbase, djclass } from "../declare"; import { attach, createElement } from "../tsx"; import { DjxWidgetBase } from "../tsx/DjxWidgetBase"; import _FormMixin from "./_FormMixin"; /** This widget represents a document section containing interactive controls * for submitting information. */ @djclass export default class Form extends djbase(DjxWidgetBase, _FormMixin) { /** Name of form for scripting. */ name?: string; /** The URL that processes the form submission. */ action?: string; /** The HTTP method to submit the form with. */ method?: "POST" | "GET" | "DIALOG"; /** If the value of the method attribute is post, enctype is the MIME type * of the form submission. */ enctype?: string; /** Comma-separated content types the server accepts. * * @deprecated This attribute has been deprecated and should not be used. * Instead, use the accept attribute on elements. */ accept?: string; /** Space-separated character encodings the server accepts. The browser * uses them in the order in which they are listed. */ "accept-charset"?: string; /** Indicates where to display the response after submitting the form. It * is a name/keyword for a browsing context (for example, tab, window, or * iframe). */ target?: string; /** Indicates whether input elements can by default have their values * automatically completed by the browser. `autocomplete` attributes on form * elements override it on `
`. */ autocomplete?: "off" | "on"; /** This Boolean attribute indicates that the form shouldn't be validated * when submitted. If this attribute is not set the form is validated, it * can be overridden by a `formnovalidate` attribute on a `