maxcountryman_web_sys/features/
gen_HtmlButtonElement.rs

1#![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 = HTMLButtonElement , typescript_type = "HTMLButtonElement")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `HtmlButtonElement` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
13    pub type HtmlButtonElement;
14    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = autofocus)]
15    #[doc = "Getter for the `autofocus` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
20    pub fn autofocus(this: &HtmlButtonElement) -> bool;
21    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = autofocus)]
22    #[doc = "Setter for the `autofocus` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
27    pub fn set_autofocus(this: &HtmlButtonElement, value: bool);
28    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = disabled)]
29    #[doc = "Getter for the `disabled` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
34    pub fn disabled(this: &HtmlButtonElement) -> bool;
35    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = disabled)]
36    #[doc = "Setter 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 set_disabled(this: &HtmlButtonElement, value: bool);
42    #[cfg(feature = "HtmlFormElement")]
43    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = form)]
44    #[doc = "Getter for the `form` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/form)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `HtmlFormElement`*"]
49    pub fn form(this: &HtmlButtonElement) -> Option<HtmlFormElement>;
50    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formAction)]
51    #[doc = "Getter for the `formAction` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
56    pub fn form_action(this: &HtmlButtonElement) -> String;
57    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formAction)]
58    #[doc = "Setter 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 set_form_action(this: &HtmlButtonElement, value: &str);
64    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formEnctype)]
65    #[doc = "Getter for the `formEnctype` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
70    pub fn form_enctype(this: &HtmlButtonElement) -> String;
71    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formEnctype)]
72    #[doc = "Setter 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 set_form_enctype(this: &HtmlButtonElement, value: &str);
78    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formMethod)]
79    #[doc = "Getter for the `formMethod` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
84    pub fn form_method(this: &HtmlButtonElement) -> String;
85    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formMethod)]
86    #[doc = "Setter 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 set_form_method(this: &HtmlButtonElement, value: &str);
92    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formNoValidate)]
93    #[doc = "Getter for the `formNoValidate` field of this object."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
98    pub fn form_no_validate(this: &HtmlButtonElement) -> bool;
99    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formNoValidate)]
100    #[doc = "Setter 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 set_form_no_validate(this: &HtmlButtonElement, value: bool);
106    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formTarget)]
107    #[doc = "Getter for the `formTarget` field of this object."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formTarget)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
112    pub fn form_target(this: &HtmlButtonElement) -> String;
113    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formTarget)]
114    #[doc = "Setter 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 set_form_target(this: &HtmlButtonElement, value: &str);
120    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = name)]
121    #[doc = "Getter for the `name` field of this object."]
122    #[doc = ""]
123    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/name)"]
124    #[doc = ""]
125    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
126    pub fn name(this: &HtmlButtonElement) -> String;
127    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = name)]
128    #[doc = "Setter 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 set_name(this: &HtmlButtonElement, value: &str);
134    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = type)]
135    #[doc = "Getter for the `type` field of this object."]
136    #[doc = ""]
137    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/type)"]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
140    pub fn type_(this: &HtmlButtonElement) -> String;
141    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = type)]
142    #[doc = "Setter 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 set_type(this: &HtmlButtonElement, value: &str);
148    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = value)]
149    #[doc = "Getter for the `value` field of this object."]
150    #[doc = ""]
151    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"]
152    #[doc = ""]
153    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
154    pub fn value(this: &HtmlButtonElement) -> String;
155    # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = value)]
156    #[doc = "Setter 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 set_value(this: &HtmlButtonElement, value: &str);
162    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = willValidate)]
163    #[doc = "Getter for the `willValidate` field of this object."]
164    #[doc = ""]
165    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/willValidate)"]
166    #[doc = ""]
167    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
168    pub fn will_validate(this: &HtmlButtonElement) -> bool;
169    #[cfg(feature = "ValidityState")]
170    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = validity)]
171    #[doc = "Getter for the `validity` field of this object."]
172    #[doc = ""]
173    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validity)"]
174    #[doc = ""]
175    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `ValidityState`*"]
176    pub fn validity(this: &HtmlButtonElement) -> ValidityState;
177    # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLButtonElement" , js_name = validationMessage)]
178    #[doc = "Getter for the `validationMessage` field of this object."]
179    #[doc = ""]
180    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validationMessage)"]
181    #[doc = ""]
182    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
183    pub fn validation_message(this: &HtmlButtonElement) -> Result<String, JsValue>;
184    #[cfg(feature = "NodeList")]
185    # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = labels)]
186    #[doc = "Getter for the `labels` field of this object."]
187    #[doc = ""]
188    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/labels)"]
189    #[doc = ""]
190    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `NodeList`*"]
191    pub fn labels(this: &HtmlButtonElement) -> NodeList;
192    # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = checkValidity)]
193    #[doc = "The `checkValidity()` method."]
194    #[doc = ""]
195    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/checkValidity)"]
196    #[doc = ""]
197    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
198    pub fn check_validity(this: &HtmlButtonElement) -> bool;
199    # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = reportValidity)]
200    #[doc = "The `reportValidity()` method."]
201    #[doc = ""]
202    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/reportValidity)"]
203    #[doc = ""]
204    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
205    pub fn report_validity(this: &HtmlButtonElement) -> bool;
206    # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = setCustomValidity)]
207    #[doc = "The `setCustomValidity()` method."]
208    #[doc = ""]
209    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/setCustomValidity)"]
210    #[doc = ""]
211    #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"]
212    pub fn set_custom_validity(this: &HtmlButtonElement, error: &str);
213}