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 = HTMLButtonElement , typescript_type = "HTMLButtonElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `HtmlButtonElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
14 pub type HtmlButtonElement;
15 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = autofocus)]
16 #[doc = "Getter for the `autofocus` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
21 #[deprecated(
22 note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead."
23 )]
24 pub fn autofocus(this: &HtmlButtonElement) -> bool;
25 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = autofocus)]
26 #[doc = "Setter for the `autofocus` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
31 #[deprecated(
32 note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead."
33 )]
34 pub fn set_autofocus(this: &HtmlButtonElement, value: bool);
35 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = disabled)]
36 #[doc = "Getter for the `disabled` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
41 pub fn disabled(this: &HtmlButtonElement) -> bool;
42 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = disabled)]
43 #[doc = "Setter for the `disabled` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
48 pub fn set_disabled(this: &HtmlButtonElement, value: bool);
49 #[cfg(feature = "HtmlFormElement")]
50 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = form)]
51 #[doc = "Getter for the `form` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/form)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `HtmlFormElement`*"]
56 pub fn form(this: &HtmlButtonElement) -> Option<HtmlFormElement>;
57 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formAction)]
58 #[doc = "Getter for the `formAction` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
63 pub fn form_action(this: &HtmlButtonElement) -> ::alloc::string::String;
64 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formAction)]
65 #[doc = "Setter for the `formAction` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
70 pub fn set_form_action(this: &HtmlButtonElement, value: &str);
71 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formEnctype)]
72 #[doc = "Getter for the `formEnctype` field of this object."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
77 pub fn form_enctype(this: &HtmlButtonElement) -> ::alloc::string::String;
78 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formEnctype)]
79 #[doc = "Setter for the `formEnctype` field of this object."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
84 pub fn set_form_enctype(this: &HtmlButtonElement, value: &str);
85 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formMethod)]
86 #[doc = "Getter for the `formMethod` field of this object."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
91 pub fn form_method(this: &HtmlButtonElement) -> ::alloc::string::String;
92 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formMethod)]
93 #[doc = "Setter for the `formMethod` field of this object."]
94 #[doc = ""]
95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod)"]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
98 pub fn set_form_method(this: &HtmlButtonElement, value: &str);
99 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formNoValidate)]
100 #[doc = "Getter for the `formNoValidate` field of this object."]
101 #[doc = ""]
102 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"]
103 #[doc = ""]
104 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
105 pub fn form_no_validate(this: &HtmlButtonElement) -> bool;
106 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formNoValidate)]
107 #[doc = "Setter for the `formNoValidate` field of this object."]
108 #[doc = ""]
109 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"]
110 #[doc = ""]
111 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
112 pub fn set_form_no_validate(this: &HtmlButtonElement, value: bool);
113 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formTarget)]
114 #[doc = "Getter for the `formTarget` field of this object."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formTarget)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
119 pub fn form_target(this: &HtmlButtonElement) -> ::alloc::string::String;
120 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formTarget)]
121 #[doc = "Setter for the `formTarget` field of this object."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formTarget)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
126 pub fn set_form_target(this: &HtmlButtonElement, value: &str);
127 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = name)]
128 #[doc = "Getter for the `name` field of this object."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/name)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
133 pub fn name(this: &HtmlButtonElement) -> ::alloc::string::String;
134 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = name)]
135 #[doc = "Setter for the `name` field of this object."]
136 #[doc = ""]
137 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/name)"]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
140 pub fn set_name(this: &HtmlButtonElement, value: &str);
141 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = type)]
142 #[doc = "Getter for the `type` field of this object."]
143 #[doc = ""]
144 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/type)"]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
147 pub fn type_(this: &HtmlButtonElement) -> ::alloc::string::String;
148 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = type)]
149 #[doc = "Setter for the `type` field of this object."]
150 #[doc = ""]
151 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/type)"]
152 #[doc = ""]
153 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
154 pub fn set_type(this: &HtmlButtonElement, value: &str);
155 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = value)]
156 #[doc = "Getter for the `value` field of this object."]
157 #[doc = ""]
158 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"]
159 #[doc = ""]
160 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
161 pub fn value(this: &HtmlButtonElement) -> ::alloc::string::String;
162 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = value)]
163 #[doc = "Setter for the `value` field of this object."]
164 #[doc = ""]
165 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"]
166 #[doc = ""]
167 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
168 pub fn set_value(this: &HtmlButtonElement, value: &str);
169 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = willValidate)]
170 #[doc = "Getter for the `willValidate` field of this object."]
171 #[doc = ""]
172 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/willValidate)"]
173 #[doc = ""]
174 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
175 pub fn will_validate(this: &HtmlButtonElement) -> bool;
176 #[cfg(feature = "ValidityState")]
177 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = validity)]
178 #[doc = "Getter for the `validity` field of this object."]
179 #[doc = ""]
180 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validity)"]
181 #[doc = ""]
182 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `ValidityState`*"]
183 pub fn validity(this: &HtmlButtonElement) -> ValidityState;
184 # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLButtonElement" , js_name = validationMessage)]
185 #[doc = "Getter for the `validationMessage` field of this object."]
186 #[doc = ""]
187 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validationMessage)"]
188 #[doc = ""]
189 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
190 pub fn validation_message(this: &HtmlButtonElement)
191 -> Result<::alloc::string::String, JsValue>;
192 #[cfg(feature = "NodeList")]
193 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = labels)]
194 #[doc = "Getter for the `labels` field of this object."]
195 #[doc = ""]
196 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/labels)"]
197 #[doc = ""]
198 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `NodeList`*"]
199 pub fn labels(this: &HtmlButtonElement) -> NodeList;
200 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = popoverTargetElement)]
201 #[doc = "Getter for the `popoverTargetElement` field of this object."]
202 #[doc = ""]
203 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetElement)"]
204 #[doc = ""]
205 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
206 pub fn popover_target_element(this: &HtmlButtonElement) -> Option<Element>;
207 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = popoverTargetElement)]
208 #[doc = "Setter for the `popoverTargetElement` field of this object."]
209 #[doc = ""]
210 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetElement)"]
211 #[doc = ""]
212 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
213 pub fn set_popover_target_element(this: &HtmlButtonElement, value: Option<&Element>);
214 # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = popoverTargetAction)]
215 #[doc = "Getter for the `popoverTargetAction` field of this object."]
216 #[doc = ""]
217 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetAction)"]
218 #[doc = ""]
219 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
220 pub fn popover_target_action(this: &HtmlButtonElement) -> ::alloc::string::String;
221 # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = popoverTargetAction)]
222 #[doc = "Setter for the `popoverTargetAction` field of this object."]
223 #[doc = ""]
224 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetAction)"]
225 #[doc = ""]
226 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
227 pub fn set_popover_target_action(this: &HtmlButtonElement, value: &str);
228 # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = checkValidity)]
229 #[doc = "The `checkValidity()` method."]
230 #[doc = ""]
231 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/checkValidity)"]
232 #[doc = ""]
233 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
234 pub fn check_validity(this: &HtmlButtonElement) -> bool;
235 # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = reportValidity)]
236 #[doc = "The `reportValidity()` method."]
237 #[doc = ""]
238 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/reportValidity)"]
239 #[doc = ""]
240 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
241 pub fn report_validity(this: &HtmlButtonElement) -> bool;
242 # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = setCustomValidity)]
243 #[doc = "The `setCustomValidity()` method."]
244 #[doc = ""]
245 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/setCustomValidity)"]
246 #[doc = ""]
247 #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
248 pub fn set_custom_validity(this: &HtmlButtonElement, error: &str);
249}