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