web_sys/features/
gen_HtmlOutputElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOutputElement , typescript_type = "HTMLOutputElement")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `HtmlOutputElement` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
14    pub type HtmlOutputElement;
15    #[cfg(feature = "DomTokenList")]
16    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = htmlFor)]
17    #[doc = "Getter for the `htmlFor` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/htmlFor)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlOutputElement`*"]
22    pub fn html_for(this: &HtmlOutputElement) -> DomTokenList;
23    #[cfg(feature = "HtmlFormElement")]
24    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = form)]
25    #[doc = "Getter for the `form` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/form)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlOutputElement`*"]
30    pub fn form(this: &HtmlOutputElement) -> Option<HtmlFormElement>;
31    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = name)]
32    #[doc = "Getter for the `name` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/name)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
37    pub fn name(this: &HtmlOutputElement) -> ::alloc::string::String;
38    # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = name)]
39    #[doc = "Setter for the `name` field of this object."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/name)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
44    pub fn set_name(this: &HtmlOutputElement, value: &str);
45    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = type)]
46    #[doc = "Getter for the `type` field of this object."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/type)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
51    pub fn type_(this: &HtmlOutputElement) -> ::alloc::string::String;
52    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = defaultValue)]
53    #[doc = "Getter for the `defaultValue` field of this object."]
54    #[doc = ""]
55    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/defaultValue)"]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
58    pub fn default_value(this: &HtmlOutputElement) -> ::alloc::string::String;
59    # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = defaultValue)]
60    #[doc = "Setter for the `defaultValue` field of this object."]
61    #[doc = ""]
62    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/defaultValue)"]
63    #[doc = ""]
64    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
65    pub fn set_default_value(this: &HtmlOutputElement, value: &str);
66    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = value)]
67    #[doc = "Getter for the `value` field of this object."]
68    #[doc = ""]
69    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value)"]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
72    pub fn value(this: &HtmlOutputElement) -> ::alloc::string::String;
73    # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = value)]
74    #[doc = "Setter for the `value` field of this object."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
79    pub fn set_value(this: &HtmlOutputElement, value: &str);
80    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = willValidate)]
81    #[doc = "Getter for the `willValidate` field of this object."]
82    #[doc = ""]
83    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/willValidate)"]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
86    pub fn will_validate(this: &HtmlOutputElement) -> bool;
87    #[cfg(feature = "ValidityState")]
88    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = validity)]
89    #[doc = "Getter for the `validity` field of this object."]
90    #[doc = ""]
91    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validity)"]
92    #[doc = ""]
93    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`, `ValidityState`*"]
94    pub fn validity(this: &HtmlOutputElement) -> ValidityState;
95    # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLOutputElement" , js_name = validationMessage)]
96    #[doc = "Getter for the `validationMessage` field of this object."]
97    #[doc = ""]
98    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validationMessage)"]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
101    pub fn validation_message(this: &HtmlOutputElement)
102        -> Result<::alloc::string::String, JsValue>;
103    #[cfg(feature = "NodeList")]
104    # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = labels)]
105    #[doc = "Getter for the `labels` field of this object."]
106    #[doc = ""]
107    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/labels)"]
108    #[doc = ""]
109    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`, `NodeList`*"]
110    pub fn labels(this: &HtmlOutputElement) -> NodeList;
111    # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = checkValidity)]
112    #[doc = "The `checkValidity()` method."]
113    #[doc = ""]
114    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/checkValidity)"]
115    #[doc = ""]
116    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
117    pub fn check_validity(this: &HtmlOutputElement) -> bool;
118    # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = reportValidity)]
119    #[doc = "The `reportValidity()` method."]
120    #[doc = ""]
121    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/reportValidity)"]
122    #[doc = ""]
123    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
124    pub fn report_validity(this: &HtmlOutputElement) -> bool;
125    # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = setCustomValidity)]
126    #[doc = "The `setCustomValidity()` method."]
127    #[doc = ""]
128    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/setCustomValidity)"]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"]
131    pub fn set_custom_validity(this: &HtmlOutputElement, error: &str);
132}