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