web_sys/features/
gen_HtmlFormElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFormElement , typescript_type = "HTMLFormElement")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `HtmlFormElement` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
14    pub type HtmlFormElement;
15    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = acceptCharset)]
16    #[doc = "Getter for the `acceptCharset` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
21    pub fn accept_charset(this: &HtmlFormElement) -> ::alloc::string::String;
22    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = acceptCharset)]
23    #[doc = "Setter for the `acceptCharset` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
28    pub fn set_accept_charset(this: &HtmlFormElement, value: &str);
29    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = action)]
30    #[doc = "Getter for the `action` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
35    pub fn action(this: &HtmlFormElement) -> ::alloc::string::String;
36    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = action)]
37    #[doc = "Setter for the `action` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
42    pub fn set_action(this: &HtmlFormElement, value: &str);
43    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = autocomplete)]
44    #[doc = "Getter for the `autocomplete` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
49    pub fn autocomplete(this: &HtmlFormElement) -> ::alloc::string::String;
50    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = autocomplete)]
51    #[doc = "Setter for the `autocomplete` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
56    pub fn set_autocomplete(this: &HtmlFormElement, value: &str);
57    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = enctype)]
58    #[doc = "Getter for the `enctype` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
63    pub fn enctype(this: &HtmlFormElement) -> ::alloc::string::String;
64    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = enctype)]
65    #[doc = "Setter for the `enctype` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
70    pub fn set_enctype(this: &HtmlFormElement, value: &str);
71    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = encoding)]
72    #[doc = "Getter for the `encoding` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
77    pub fn encoding(this: &HtmlFormElement) -> ::alloc::string::String;
78    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = encoding)]
79    #[doc = "Setter for the `encoding` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
84    pub fn set_encoding(this: &HtmlFormElement, value: &str);
85    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = method)]
86    #[doc = "Getter for the `method` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
91    pub fn method(this: &HtmlFormElement) -> ::alloc::string::String;
92    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = method)]
93    #[doc = "Setter for the `method` field of this object."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
98    pub fn set_method(this: &HtmlFormElement, value: &str);
99    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = name)]
100    #[doc = "Getter for the `name` field of this object."]
101    #[doc = ""]
102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
105    pub fn name(this: &HtmlFormElement) -> ::alloc::string::String;
106    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = name)]
107    #[doc = "Setter for the `name` field of this object."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
112    pub fn set_name(this: &HtmlFormElement, value: &str);
113    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = noValidate)]
114    #[doc = "Getter for the `noValidate` field of this object."]
115    #[doc = ""]
116    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"]
117    #[doc = ""]
118    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
119    pub fn no_validate(this: &HtmlFormElement) -> bool;
120    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = noValidate)]
121    #[doc = "Setter for the `noValidate` field of this object."]
122    #[doc = ""]
123    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"]
124    #[doc = ""]
125    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
126    pub fn set_no_validate(this: &HtmlFormElement, value: bool);
127    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = target)]
128    #[doc = "Getter for the `target` field of this object."]
129    #[doc = ""]
130    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"]
131    #[doc = ""]
132    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
133    pub fn target(this: &HtmlFormElement) -> ::alloc::string::String;
134    # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = target)]
135    #[doc = "Setter for the `target` field of this object."]
136    #[doc = ""]
137    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
140    pub fn set_target(this: &HtmlFormElement, value: &str);
141    #[cfg(feature = "HtmlCollection")]
142    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = elements)]
143    #[doc = "Getter for the `elements` field of this object."]
144    #[doc = ""]
145    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/elements)"]
146    #[doc = ""]
147    #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFormElement`*"]
148    pub fn elements(this: &HtmlFormElement) -> HtmlCollection;
149    # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = length)]
150    #[doc = "Getter for the `length` field of this object."]
151    #[doc = ""]
152    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/length)"]
153    #[doc = ""]
154    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
155    pub fn length(this: &HtmlFormElement) -> i32;
156    # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = checkValidity)]
157    #[doc = "The `checkValidity()` method."]
158    #[doc = ""]
159    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/checkValidity)"]
160    #[doc = ""]
161    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
162    pub fn check_validity(this: &HtmlFormElement) -> bool;
163    # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = reportValidity)]
164    #[doc = "The `reportValidity()` method."]
165    #[doc = ""]
166    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity)"]
167    #[doc = ""]
168    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
169    pub fn report_validity(this: &HtmlFormElement) -> bool;
170    # [wasm_bindgen (catch , method , structural , js_class = "HTMLFormElement" , js_name = requestSubmit)]
171    #[doc = "The `requestSubmit()` method."]
172    #[doc = ""]
173    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)"]
174    #[doc = ""]
175    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
176    pub fn request_submit(this: &HtmlFormElement) -> Result<(), JsValue>;
177    # [wasm_bindgen (catch , method , structural , js_class = "HTMLFormElement" , js_name = requestSubmit)]
178    #[doc = "The `requestSubmit()` method."]
179    #[doc = ""]
180    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)"]
181    #[doc = ""]
182    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
183    pub fn request_submit_with_submitter(
184        this: &HtmlFormElement,
185        submitter: Option<&HtmlElement>,
186    ) -> Result<(), JsValue>;
187    # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = reset)]
188    #[doc = "The `reset()` method."]
189    #[doc = ""]
190    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reset)"]
191    #[doc = ""]
192    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
193    pub fn reset(this: &HtmlFormElement);
194    # [wasm_bindgen (catch , method , structural , js_class = "HTMLFormElement" , js_name = submit)]
195    #[doc = "The `submit()` method."]
196    #[doc = ""]
197    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit)"]
198    #[doc = ""]
199    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
200    pub fn submit(this: &HtmlFormElement) -> Result<(), JsValue>;
201    #[wasm_bindgen(method, structural, js_class = "HTMLFormElement", indexing_getter)]
202    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
203    #[doc = ""]
204    #[doc = ""]
205    #[doc = ""]
206    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
207    pub fn get_with_index(this: &HtmlFormElement, index: u32) -> Option<Element>;
208    #[wasm_bindgen(method, structural, js_class = "HTMLFormElement", indexing_getter)]
209    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
210    #[doc = ""]
211    #[doc = ""]
212    #[doc = ""]
213    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
214    pub fn get_with_name(this: &HtmlFormElement, name: &str) -> Option<::js_sys::Object>;
215}