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