1 | #![allow (unused_imports)] |
2 | #![allow (clippy::all)] |
3 | use super::*; |
4 | use wasm_bindgen::prelude::*; |
5 | #[wasm_bindgen ] |
6 | extern "C" { |
7 | # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLInputElement , typescript_type = "HTMLInputElement" )] |
8 | #[derive (Debug, Clone, PartialEq, Eq)] |
9 | #[doc = "The `HtmlInputElement` class." ] |
10 | #[doc = "" ] |
11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement)" ] |
12 | #[doc = "" ] |
13 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
14 | pub type HtmlInputElement; |
15 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = accept)] |
16 | #[doc = "Getter for the `accept` field of this object." ] |
17 | #[doc = "" ] |
18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/accept)" ] |
19 | #[doc = "" ] |
20 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
21 | pub fn accept(this: &HtmlInputElement) -> String; |
22 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = accept)] |
23 | #[doc = "Setter for the `accept` field of this object." ] |
24 | #[doc = "" ] |
25 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/accept)" ] |
26 | #[doc = "" ] |
27 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
28 | pub fn set_accept(this: &HtmlInputElement, value: &str); |
29 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = alt)] |
30 | #[doc = "Getter for the `alt` field of this object." ] |
31 | #[doc = "" ] |
32 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/alt)" ] |
33 | #[doc = "" ] |
34 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
35 | pub fn alt(this: &HtmlInputElement) -> String; |
36 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = alt)] |
37 | #[doc = "Setter for the `alt` field of this object." ] |
38 | #[doc = "" ] |
39 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/alt)" ] |
40 | #[doc = "" ] |
41 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
42 | pub fn set_alt(this: &HtmlInputElement, value: &str); |
43 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , 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/HTMLInputElement/autocomplete)" ] |
47 | #[doc = "" ] |
48 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
49 | pub fn autocomplete(this: &HtmlInputElement) -> String; |
50 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , 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/HTMLInputElement/autocomplete)" ] |
54 | #[doc = "" ] |
55 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
56 | pub fn set_autocomplete(this: &HtmlInputElement, value: &str); |
57 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = autofocus)] |
58 | #[doc = "Getter for the `autofocus` field of this object." ] |
59 | #[doc = "" ] |
60 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)" ] |
61 | #[doc = "" ] |
62 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
63 | pub fn autofocus(this: &HtmlInputElement) -> bool; |
64 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = autofocus)] |
65 | #[doc = "Setter for the `autofocus` field of this object." ] |
66 | #[doc = "" ] |
67 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)" ] |
68 | #[doc = "" ] |
69 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
70 | pub fn set_autofocus(this: &HtmlInputElement, value: bool); |
71 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultChecked)] |
72 | #[doc = "Getter for the `defaultChecked` field of this object." ] |
73 | #[doc = "" ] |
74 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultChecked)" ] |
75 | #[doc = "" ] |
76 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
77 | pub fn default_checked(this: &HtmlInputElement) -> bool; |
78 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultChecked)] |
79 | #[doc = "Setter for the `defaultChecked` field of this object." ] |
80 | #[doc = "" ] |
81 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultChecked)" ] |
82 | #[doc = "" ] |
83 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
84 | pub fn set_default_checked(this: &HtmlInputElement, value: bool); |
85 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = checked)] |
86 | #[doc = "Getter for the `checked` field of this object." ] |
87 | #[doc = "" ] |
88 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checked)" ] |
89 | #[doc = "" ] |
90 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
91 | pub fn checked(this: &HtmlInputElement) -> bool; |
92 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = checked)] |
93 | #[doc = "Setter for the `checked` field of this object." ] |
94 | #[doc = "" ] |
95 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checked)" ] |
96 | #[doc = "" ] |
97 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
98 | pub fn set_checked(this: &HtmlInputElement, value: bool); |
99 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = disabled)] |
100 | #[doc = "Getter for the `disabled` field of this object." ] |
101 | #[doc = "" ] |
102 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/disabled)" ] |
103 | #[doc = "" ] |
104 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
105 | pub fn disabled(this: &HtmlInputElement) -> bool; |
106 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = disabled)] |
107 | #[doc = "Setter for the `disabled` field of this object." ] |
108 | #[doc = "" ] |
109 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/disabled)" ] |
110 | #[doc = "" ] |
111 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
112 | pub fn set_disabled(this: &HtmlInputElement, value: bool); |
113 | #[cfg (feature = "HtmlFormElement" )] |
114 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = form)] |
115 | #[doc = "Getter for the `form` field of this object." ] |
116 | #[doc = "" ] |
117 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/form)" ] |
118 | #[doc = "" ] |
119 | #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlInputElement`*" ] |
120 | pub fn form(this: &HtmlInputElement) -> Option<HtmlFormElement>; |
121 | #[cfg (feature = "FileList" )] |
122 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = files)] |
123 | #[doc = "Getter for the `files` field of this object." ] |
124 | #[doc = "" ] |
125 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)" ] |
126 | #[doc = "" ] |
127 | #[doc = "*This API requires the following crate features to be activated: `FileList`, `HtmlInputElement`*" ] |
128 | pub fn files(this: &HtmlInputElement) -> Option<FileList>; |
129 | #[cfg (feature = "FileList" )] |
130 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = files)] |
131 | #[doc = "Setter for the `files` field of this object." ] |
132 | #[doc = "" ] |
133 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)" ] |
134 | #[doc = "" ] |
135 | #[doc = "*This API requires the following crate features to be activated: `FileList`, `HtmlInputElement`*" ] |
136 | pub fn set_files(this: &HtmlInputElement, value: Option<&FileList>); |
137 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formAction)] |
138 | #[doc = "Getter for the `formAction` field of this object." ] |
139 | #[doc = "" ] |
140 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formAction)" ] |
141 | #[doc = "" ] |
142 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
143 | pub fn form_action(this: &HtmlInputElement) -> String; |
144 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formAction)] |
145 | #[doc = "Setter for the `formAction` field of this object." ] |
146 | #[doc = "" ] |
147 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formAction)" ] |
148 | #[doc = "" ] |
149 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
150 | pub fn set_form_action(this: &HtmlInputElement, value: &str); |
151 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formEnctype)] |
152 | #[doc = "Getter for the `formEnctype` field of this object." ] |
153 | #[doc = "" ] |
154 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formEnctype)" ] |
155 | #[doc = "" ] |
156 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
157 | pub fn form_enctype(this: &HtmlInputElement) -> String; |
158 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formEnctype)] |
159 | #[doc = "Setter for the `formEnctype` field of this object." ] |
160 | #[doc = "" ] |
161 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formEnctype)" ] |
162 | #[doc = "" ] |
163 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
164 | pub fn set_form_enctype(this: &HtmlInputElement, value: &str); |
165 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formMethod)] |
166 | #[doc = "Getter for the `formMethod` field of this object." ] |
167 | #[doc = "" ] |
168 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formMethod)" ] |
169 | #[doc = "" ] |
170 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
171 | pub fn form_method(this: &HtmlInputElement) -> String; |
172 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formMethod)] |
173 | #[doc = "Setter for the `formMethod` field of this object." ] |
174 | #[doc = "" ] |
175 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formMethod)" ] |
176 | #[doc = "" ] |
177 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
178 | pub fn set_form_method(this: &HtmlInputElement, value: &str); |
179 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formNoValidate)] |
180 | #[doc = "Getter for the `formNoValidate` field of this object." ] |
181 | #[doc = "" ] |
182 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate)" ] |
183 | #[doc = "" ] |
184 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
185 | pub fn form_no_validate(this: &HtmlInputElement) -> bool; |
186 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formNoValidate)] |
187 | #[doc = "Setter for the `formNoValidate` field of this object." ] |
188 | #[doc = "" ] |
189 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate)" ] |
190 | #[doc = "" ] |
191 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
192 | pub fn set_form_no_validate(this: &HtmlInputElement, value: bool); |
193 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formTarget)] |
194 | #[doc = "Getter for the `formTarget` field of this object." ] |
195 | #[doc = "" ] |
196 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formTarget)" ] |
197 | #[doc = "" ] |
198 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
199 | pub fn form_target(this: &HtmlInputElement) -> String; |
200 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formTarget)] |
201 | #[doc = "Setter for the `formTarget` field of this object." ] |
202 | #[doc = "" ] |
203 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formTarget)" ] |
204 | #[doc = "" ] |
205 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
206 | pub fn set_form_target(this: &HtmlInputElement, value: &str); |
207 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = height)] |
208 | #[doc = "Getter for the `height` field of this object." ] |
209 | #[doc = "" ] |
210 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/height)" ] |
211 | #[doc = "" ] |
212 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
213 | pub fn height(this: &HtmlInputElement) -> u32; |
214 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = height)] |
215 | #[doc = "Setter for the `height` field of this object." ] |
216 | #[doc = "" ] |
217 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/height)" ] |
218 | #[doc = "" ] |
219 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
220 | pub fn set_height(this: &HtmlInputElement, value: u32); |
221 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = indeterminate)] |
222 | #[doc = "Getter for the `indeterminate` field of this object." ] |
223 | #[doc = "" ] |
224 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate)" ] |
225 | #[doc = "" ] |
226 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
227 | pub fn indeterminate(this: &HtmlInputElement) -> bool; |
228 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = indeterminate)] |
229 | #[doc = "Setter for the `indeterminate` field of this object." ] |
230 | #[doc = "" ] |
231 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate)" ] |
232 | #[doc = "" ] |
233 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
234 | pub fn set_indeterminate(this: &HtmlInputElement, value: bool); |
235 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = inputMode)] |
236 | #[doc = "Getter for the `inputMode` field of this object." ] |
237 | #[doc = "" ] |
238 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/inputMode)" ] |
239 | #[doc = "" ] |
240 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
241 | pub fn input_mode(this: &HtmlInputElement) -> String; |
242 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = inputMode)] |
243 | #[doc = "Setter for the `inputMode` field of this object." ] |
244 | #[doc = "" ] |
245 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/inputMode)" ] |
246 | #[doc = "" ] |
247 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
248 | pub fn set_input_mode(this: &HtmlInputElement, value: &str); |
249 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = list)] |
250 | #[doc = "Getter for the `list` field of this object." ] |
251 | #[doc = "" ] |
252 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/list)" ] |
253 | #[doc = "" ] |
254 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
255 | pub fn list(this: &HtmlInputElement) -> Option<HtmlElement>; |
256 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = max)] |
257 | #[doc = "Getter for the `max` field of this object." ] |
258 | #[doc = "" ] |
259 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/max)" ] |
260 | #[doc = "" ] |
261 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
262 | pub fn max(this: &HtmlInputElement) -> String; |
263 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = max)] |
264 | #[doc = "Setter for the `max` field of this object." ] |
265 | #[doc = "" ] |
266 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/max)" ] |
267 | #[doc = "" ] |
268 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
269 | pub fn set_max(this: &HtmlInputElement, value: &str); |
270 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = maxLength)] |
271 | #[doc = "Getter for the `maxLength` field of this object." ] |
272 | #[doc = "" ] |
273 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/maxLength)" ] |
274 | #[doc = "" ] |
275 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
276 | pub fn max_length(this: &HtmlInputElement) -> i32; |
277 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = maxLength)] |
278 | #[doc = "Setter for the `maxLength` field of this object." ] |
279 | #[doc = "" ] |
280 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/maxLength)" ] |
281 | #[doc = "" ] |
282 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
283 | pub fn set_max_length(this: &HtmlInputElement, value: i32); |
284 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = min)] |
285 | #[doc = "Getter for the `min` field of this object." ] |
286 | #[doc = "" ] |
287 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/min)" ] |
288 | #[doc = "" ] |
289 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
290 | pub fn min(this: &HtmlInputElement) -> String; |
291 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = min)] |
292 | #[doc = "Setter for the `min` field of this object." ] |
293 | #[doc = "" ] |
294 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/min)" ] |
295 | #[doc = "" ] |
296 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
297 | pub fn set_min(this: &HtmlInputElement, value: &str); |
298 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = minLength)] |
299 | #[doc = "Getter for the `minLength` field of this object." ] |
300 | #[doc = "" ] |
301 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/minLength)" ] |
302 | #[doc = "" ] |
303 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
304 | pub fn min_length(this: &HtmlInputElement) -> i32; |
305 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = minLength)] |
306 | #[doc = "Setter for the `minLength` field of this object." ] |
307 | #[doc = "" ] |
308 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/minLength)" ] |
309 | #[doc = "" ] |
310 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
311 | pub fn set_min_length(this: &HtmlInputElement, value: i32); |
312 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = multiple)] |
313 | #[doc = "Getter for the `multiple` field of this object." ] |
314 | #[doc = "" ] |
315 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/multiple)" ] |
316 | #[doc = "" ] |
317 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
318 | pub fn multiple(this: &HtmlInputElement) -> bool; |
319 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = multiple)] |
320 | #[doc = "Setter for the `multiple` field of this object." ] |
321 | #[doc = "" ] |
322 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/multiple)" ] |
323 | #[doc = "" ] |
324 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
325 | pub fn set_multiple(this: &HtmlInputElement, value: bool); |
326 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = name)] |
327 | #[doc = "Getter for the `name` field of this object." ] |
328 | #[doc = "" ] |
329 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/name)" ] |
330 | #[doc = "" ] |
331 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
332 | pub fn name(this: &HtmlInputElement) -> String; |
333 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = name)] |
334 | #[doc = "Setter for the `name` field of this object." ] |
335 | #[doc = "" ] |
336 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/name)" ] |
337 | #[doc = "" ] |
338 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
339 | pub fn set_name(this: &HtmlInputElement, value: &str); |
340 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = pattern)] |
341 | #[doc = "Getter for the `pattern` field of this object." ] |
342 | #[doc = "" ] |
343 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/pattern)" ] |
344 | #[doc = "" ] |
345 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
346 | pub fn pattern(this: &HtmlInputElement) -> String; |
347 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = pattern)] |
348 | #[doc = "Setter for the `pattern` field of this object." ] |
349 | #[doc = "" ] |
350 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/pattern)" ] |
351 | #[doc = "" ] |
352 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
353 | pub fn set_pattern(this: &HtmlInputElement, value: &str); |
354 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = placeholder)] |
355 | #[doc = "Getter for the `placeholder` field of this object." ] |
356 | #[doc = "" ] |
357 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/placeholder)" ] |
358 | #[doc = "" ] |
359 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
360 | pub fn placeholder(this: &HtmlInputElement) -> String; |
361 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = placeholder)] |
362 | #[doc = "Setter for the `placeholder` field of this object." ] |
363 | #[doc = "" ] |
364 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/placeholder)" ] |
365 | #[doc = "" ] |
366 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
367 | pub fn set_placeholder(this: &HtmlInputElement, value: &str); |
368 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = readOnly)] |
369 | #[doc = "Getter for the `readOnly` field of this object." ] |
370 | #[doc = "" ] |
371 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/readOnly)" ] |
372 | #[doc = "" ] |
373 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
374 | pub fn read_only(this: &HtmlInputElement) -> bool; |
375 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = readOnly)] |
376 | #[doc = "Setter for the `readOnly` field of this object." ] |
377 | #[doc = "" ] |
378 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/readOnly)" ] |
379 | #[doc = "" ] |
380 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
381 | pub fn set_read_only(this: &HtmlInputElement, value: bool); |
382 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = required)] |
383 | #[doc = "Getter for the `required` field of this object." ] |
384 | #[doc = "" ] |
385 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/required)" ] |
386 | #[doc = "" ] |
387 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
388 | pub fn required(this: &HtmlInputElement) -> bool; |
389 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = required)] |
390 | #[doc = "Setter for the `required` field of this object." ] |
391 | #[doc = "" ] |
392 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/required)" ] |
393 | #[doc = "" ] |
394 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
395 | pub fn set_required(this: &HtmlInputElement, value: bool); |
396 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = size)] |
397 | #[doc = "Getter for the `size` field of this object." ] |
398 | #[doc = "" ] |
399 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/size)" ] |
400 | #[doc = "" ] |
401 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
402 | pub fn size(this: &HtmlInputElement) -> u32; |
403 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = size)] |
404 | #[doc = "Setter for the `size` field of this object." ] |
405 | #[doc = "" ] |
406 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/size)" ] |
407 | #[doc = "" ] |
408 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
409 | pub fn set_size(this: &HtmlInputElement, value: u32); |
410 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = src)] |
411 | #[doc = "Getter for the `src` field of this object." ] |
412 | #[doc = "" ] |
413 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/src)" ] |
414 | #[doc = "" ] |
415 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
416 | pub fn src(this: &HtmlInputElement) -> String; |
417 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = src)] |
418 | #[doc = "Setter for the `src` field of this object." ] |
419 | #[doc = "" ] |
420 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/src)" ] |
421 | #[doc = "" ] |
422 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
423 | pub fn set_src(this: &HtmlInputElement, value: &str); |
424 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = step)] |
425 | #[doc = "Getter for the `step` field of this object." ] |
426 | #[doc = "" ] |
427 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/step)" ] |
428 | #[doc = "" ] |
429 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
430 | pub fn step(this: &HtmlInputElement) -> String; |
431 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = step)] |
432 | #[doc = "Setter for the `step` field of this object." ] |
433 | #[doc = "" ] |
434 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/step)" ] |
435 | #[doc = "" ] |
436 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
437 | pub fn set_step(this: &HtmlInputElement, value: &str); |
438 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = type)] |
439 | #[doc = "Getter for the `type` field of this object." ] |
440 | #[doc = "" ] |
441 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/type)" ] |
442 | #[doc = "" ] |
443 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
444 | pub fn type_(this: &HtmlInputElement) -> String; |
445 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = type)] |
446 | #[doc = "Setter for the `type` field of this object." ] |
447 | #[doc = "" ] |
448 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/type)" ] |
449 | #[doc = "" ] |
450 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
451 | pub fn set_type(this: &HtmlInputElement, value: &str); |
452 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultValue)] |
453 | #[doc = "Getter for the `defaultValue` field of this object." ] |
454 | #[doc = "" ] |
455 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultValue)" ] |
456 | #[doc = "" ] |
457 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
458 | pub fn default_value(this: &HtmlInputElement) -> String; |
459 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultValue)] |
460 | #[doc = "Setter for the `defaultValue` field of this object." ] |
461 | #[doc = "" ] |
462 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultValue)" ] |
463 | #[doc = "" ] |
464 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
465 | pub fn set_default_value(this: &HtmlInputElement, value: &str); |
466 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = value)] |
467 | #[doc = "Getter for the `value` field of this object." ] |
468 | #[doc = "" ] |
469 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/value)" ] |
470 | #[doc = "" ] |
471 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
472 | pub fn value(this: &HtmlInputElement) -> String; |
473 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = value)] |
474 | #[doc = "Setter for the `value` field of this object." ] |
475 | #[doc = "" ] |
476 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/value)" ] |
477 | #[doc = "" ] |
478 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
479 | pub fn set_value(this: &HtmlInputElement, value: &str); |
480 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = valueAsNumber)] |
481 | #[doc = "Getter for the `valueAsNumber` field of this object." ] |
482 | #[doc = "" ] |
483 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/valueAsNumber)" ] |
484 | #[doc = "" ] |
485 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
486 | pub fn value_as_number(this: &HtmlInputElement) -> f64; |
487 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = valueAsNumber)] |
488 | #[doc = "Setter for the `valueAsNumber` field of this object." ] |
489 | #[doc = "" ] |
490 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/valueAsNumber)" ] |
491 | #[doc = "" ] |
492 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
493 | pub fn set_value_as_number(this: &HtmlInputElement, value: f64); |
494 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = width)] |
495 | #[doc = "Getter for the `width` field of this object." ] |
496 | #[doc = "" ] |
497 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/width)" ] |
498 | #[doc = "" ] |
499 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
500 | pub fn width(this: &HtmlInputElement) -> u32; |
501 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = width)] |
502 | #[doc = "Setter for the `width` field of this object." ] |
503 | #[doc = "" ] |
504 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/width)" ] |
505 | #[doc = "" ] |
506 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
507 | pub fn set_width(this: &HtmlInputElement, value: u32); |
508 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = willValidate)] |
509 | #[doc = "Getter for the `willValidate` field of this object." ] |
510 | #[doc = "" ] |
511 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/willValidate)" ] |
512 | #[doc = "" ] |
513 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
514 | pub fn will_validate(this: &HtmlInputElement) -> bool; |
515 | #[cfg (feature = "ValidityState" )] |
516 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = validity)] |
517 | #[doc = "Getter for the `validity` field of this object." ] |
518 | #[doc = "" ] |
519 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validity)" ] |
520 | #[doc = "" ] |
521 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `ValidityState`*" ] |
522 | pub fn validity(this: &HtmlInputElement) -> ValidityState; |
523 | # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = validationMessage)] |
524 | #[doc = "Getter for the `validationMessage` field of this object." ] |
525 | #[doc = "" ] |
526 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validationMessage)" ] |
527 | #[doc = "" ] |
528 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
529 | pub fn validation_message(this: &HtmlInputElement) -> Result<String, JsValue>; |
530 | #[cfg (feature = "NodeList" )] |
531 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = labels)] |
532 | #[doc = "Getter for the `labels` field of this object." ] |
533 | #[doc = "" ] |
534 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/labels)" ] |
535 | #[doc = "" ] |
536 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `NodeList`*" ] |
537 | pub fn labels(this: &HtmlInputElement) -> Option<NodeList>; |
538 | # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionStart)] |
539 | #[doc = "Getter for the `selectionStart` field of this object." ] |
540 | #[doc = "" ] |
541 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionStart)" ] |
542 | #[doc = "" ] |
543 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
544 | pub fn selection_start(this: &HtmlInputElement) -> Result<Option<u32>, JsValue>; |
545 | # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionStart)] |
546 | #[doc = "Setter for the `selectionStart` field of this object." ] |
547 | #[doc = "" ] |
548 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionStart)" ] |
549 | #[doc = "" ] |
550 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
551 | pub fn set_selection_start(this: &HtmlInputElement, value: Option<u32>) -> Result<(), JsValue>; |
552 | # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionEnd)] |
553 | #[doc = "Getter for the `selectionEnd` field of this object." ] |
554 | #[doc = "" ] |
555 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionEnd)" ] |
556 | #[doc = "" ] |
557 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
558 | pub fn selection_end(this: &HtmlInputElement) -> Result<Option<u32>, JsValue>; |
559 | # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionEnd)] |
560 | #[doc = "Setter for the `selectionEnd` field of this object." ] |
561 | #[doc = "" ] |
562 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionEnd)" ] |
563 | #[doc = "" ] |
564 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
565 | pub fn set_selection_end(this: &HtmlInputElement, value: Option<u32>) -> Result<(), JsValue>; |
566 | # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionDirection)] |
567 | #[doc = "Getter for the `selectionDirection` field of this object." ] |
568 | #[doc = "" ] |
569 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionDirection)" ] |
570 | #[doc = "" ] |
571 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
572 | pub fn selection_direction(this: &HtmlInputElement) -> Result<Option<String>, JsValue>; |
573 | # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionDirection)] |
574 | #[doc = "Setter for the `selectionDirection` field of this object." ] |
575 | #[doc = "" ] |
576 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionDirection)" ] |
577 | #[doc = "" ] |
578 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
579 | pub fn set_selection_direction( |
580 | this: &HtmlInputElement, |
581 | value: Option<&str>, |
582 | ) -> Result<(), JsValue>; |
583 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = align)] |
584 | #[doc = "Getter for the `align` field of this object." ] |
585 | #[doc = "" ] |
586 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/align)" ] |
587 | #[doc = "" ] |
588 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
589 | pub fn align(this: &HtmlInputElement) -> String; |
590 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = align)] |
591 | #[doc = "Setter for the `align` field of this object." ] |
592 | #[doc = "" ] |
593 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/align)" ] |
594 | #[doc = "" ] |
595 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
596 | pub fn set_align(this: &HtmlInputElement, value: &str); |
597 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = useMap)] |
598 | #[doc = "Getter for the `useMap` field of this object." ] |
599 | #[doc = "" ] |
600 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/useMap)" ] |
601 | #[doc = "" ] |
602 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
603 | pub fn use_map(this: &HtmlInputElement) -> String; |
604 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = useMap)] |
605 | #[doc = "Setter for the `useMap` field of this object." ] |
606 | #[doc = "" ] |
607 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/useMap)" ] |
608 | #[doc = "" ] |
609 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
610 | pub fn set_use_map(this: &HtmlInputElement, value: &str); |
611 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = webkitEntries)] |
612 | #[doc = "Getter for the `webkitEntries` field of this object." ] |
613 | #[doc = "" ] |
614 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitEntries)" ] |
615 | #[doc = "" ] |
616 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
617 | pub fn webkit_entries(this: &HtmlInputElement) -> ::js_sys::Array; |
618 | # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = webkitdirectory)] |
619 | #[doc = "Getter for the `webkitdirectory` field of this object." ] |
620 | #[doc = "" ] |
621 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)" ] |
622 | #[doc = "" ] |
623 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
624 | pub fn webkitdirectory(this: &HtmlInputElement) -> bool; |
625 | # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = webkitdirectory)] |
626 | #[doc = "Setter for the `webkitdirectory` field of this object." ] |
627 | #[doc = "" ] |
628 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)" ] |
629 | #[doc = "" ] |
630 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
631 | pub fn set_webkitdirectory(this: &HtmlInputElement, value: bool); |
632 | # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = checkValidity)] |
633 | #[doc = "The `checkValidity()` method." ] |
634 | #[doc = "" ] |
635 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity)" ] |
636 | #[doc = "" ] |
637 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
638 | pub fn check_validity(this: &HtmlInputElement) -> bool; |
639 | # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = reportValidity)] |
640 | #[doc = "The `reportValidity()` method." ] |
641 | #[doc = "" ] |
642 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity)" ] |
643 | #[doc = "" ] |
644 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
645 | pub fn report_validity(this: &HtmlInputElement) -> bool; |
646 | # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = select)] |
647 | #[doc = "The `select()` method." ] |
648 | #[doc = "" ] |
649 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select)" ] |
650 | #[doc = "" ] |
651 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
652 | pub fn select(this: &HtmlInputElement); |
653 | # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = setCustomValidity)] |
654 | #[doc = "The `setCustomValidity()` method." ] |
655 | #[doc = "" ] |
656 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity)" ] |
657 | #[doc = "" ] |
658 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
659 | pub fn set_custom_validity(this: &HtmlInputElement, error: &str); |
660 | # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText)] |
661 | #[doc = "The `setRangeText()` method." ] |
662 | #[doc = "" ] |
663 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)" ] |
664 | #[doc = "" ] |
665 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
666 | pub fn set_range_text(this: &HtmlInputElement, replacement: &str) -> Result<(), JsValue>; |
667 | # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText)] |
668 | #[doc = "The `setRangeText()` method." ] |
669 | #[doc = "" ] |
670 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)" ] |
671 | #[doc = "" ] |
672 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
673 | pub fn set_range_text_with_start_and_end( |
674 | this: &HtmlInputElement, |
675 | replacement: &str, |
676 | start: u32, |
677 | end: u32, |
678 | ) -> Result<(), JsValue>; |
679 | #[cfg (feature = "SelectionMode" )] |
680 | # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText)] |
681 | #[doc = "The `setRangeText()` method." ] |
682 | #[doc = "" ] |
683 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)" ] |
684 | #[doc = "" ] |
685 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `SelectionMode`*" ] |
686 | pub fn set_range_text_with_start_and_end_and_selection_mode( |
687 | this: &HtmlInputElement, |
688 | replacement: &str, |
689 | start: u32, |
690 | end: u32, |
691 | selection_mode: SelectionMode, |
692 | ) -> Result<(), JsValue>; |
693 | # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setSelectionRange)] |
694 | #[doc = "The `setSelectionRange()` method." ] |
695 | #[doc = "" ] |
696 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)" ] |
697 | #[doc = "" ] |
698 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
699 | pub fn set_selection_range( |
700 | this: &HtmlInputElement, |
701 | start: u32, |
702 | end: u32, |
703 | ) -> Result<(), JsValue>; |
704 | # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setSelectionRange)] |
705 | #[doc = "The `setSelectionRange()` method." ] |
706 | #[doc = "" ] |
707 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)" ] |
708 | #[doc = "" ] |
709 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
710 | pub fn set_selection_range_with_direction( |
711 | this: &HtmlInputElement, |
712 | start: u32, |
713 | end: u32, |
714 | direction: &str, |
715 | ) -> Result<(), JsValue>; |
716 | # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = showPicker)] |
717 | #[doc = "The `showPicker()` method." ] |
718 | #[doc = "" ] |
719 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker)" ] |
720 | #[doc = "" ] |
721 | #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*" ] |
722 | pub fn show_picker(this: &HtmlInputElement) -> Result<(), JsValue>; |
723 | } |
724 | |