]> git.proxmox.com Git - rustc.git/blame - vendor/web-sys/src/features/gen_HtmlOptionElement.rs
New upstream version 1.72.1+dfsg1
[rustc.git] / vendor / web-sys / src / features / gen_HtmlOptionElement.rs
CommitLineData
49aad941 1#![allow(unused_imports)]
fe692bf9 2#![allow(clippy::all)]
49aad941
FG
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 = HTMLOptionElement , typescript_type = "HTMLOptionElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `HtmlOptionElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
14 pub type HtmlOptionElement;
15 # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = disabled)]
16 #[doc = "Getter for the `disabled` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
21 pub fn disabled(this: &HtmlOptionElement) -> bool;
22 # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = disabled)]
23 #[doc = "Setter for the `disabled` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
28 pub fn set_disabled(this: &HtmlOptionElement, value: bool);
29 #[cfg(feature = "HtmlFormElement")]
30 # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = form)]
31 #[doc = "Getter for the `form` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/form)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlOptionElement`*"]
36 pub fn form(this: &HtmlOptionElement) -> Option<HtmlFormElement>;
37 # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = label)]
38 #[doc = "Getter for the `label` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/label)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
43 pub fn label(this: &HtmlOptionElement) -> String;
44 # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = label)]
45 #[doc = "Setter for the `label` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/label)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
50 pub fn set_label(this: &HtmlOptionElement, value: &str);
51 # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = defaultSelected)]
52 #[doc = "Getter for the `defaultSelected` field of this object."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
57 pub fn default_selected(this: &HtmlOptionElement) -> bool;
58 # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = defaultSelected)]
59 #[doc = "Setter for the `defaultSelected` field of this object."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
64 pub fn set_default_selected(this: &HtmlOptionElement, value: bool);
65 # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = selected)]
66 #[doc = "Getter for the `selected` field of this object."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
71 pub fn selected(this: &HtmlOptionElement) -> bool;
72 # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = selected)]
73 #[doc = "Setter for the `selected` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
78 pub fn set_selected(this: &HtmlOptionElement, value: bool);
79 # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = value)]
80 #[doc = "Getter for the `value` field of this object."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
85 pub fn value(this: &HtmlOptionElement) -> String;
86 # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = value)]
87 #[doc = "Setter for the `value` field of this object."]
88 #[doc = ""]
89 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value)"]
90 #[doc = ""]
91 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
92 pub fn set_value(this: &HtmlOptionElement, value: &str);
93 # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = text)]
94 #[doc = "Getter for the `text` field of this object."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/text)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
99 pub fn text(this: &HtmlOptionElement) -> String;
100 # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = text)]
101 #[doc = "Setter for the `text` field of this object."]
102 #[doc = ""]
103 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/text)"]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
106 pub fn set_text(this: &HtmlOptionElement, value: &str);
107 # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = index)]
108 #[doc = "Getter for the `index` field of this object."]
109 #[doc = ""]
110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/index)"]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
113 pub fn index(this: &HtmlOptionElement) -> i32;
114 #[wasm_bindgen(catch, constructor, js_class = "Option")]
115 #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."]
116 #[doc = ""]
117 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
120 pub fn new() -> Result<HtmlOptionElement, JsValue>;
121 #[wasm_bindgen(catch, constructor, js_class = "Option")]
122 #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."]
123 #[doc = ""]
124 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"]
125 #[doc = ""]
126 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
127 pub fn new_with_text(text: &str) -> Result<HtmlOptionElement, JsValue>;
128 #[wasm_bindgen(catch, constructor, js_class = "Option")]
129 #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."]
130 #[doc = ""]
131 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"]
132 #[doc = ""]
133 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
134 pub fn new_with_text_and_value(text: &str, value: &str) -> Result<HtmlOptionElement, JsValue>;
135 #[wasm_bindgen(catch, constructor, js_class = "Option")]
136 #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."]
137 #[doc = ""]
138 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"]
139 #[doc = ""]
140 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
141 pub fn new_with_text_and_value_and_default_selected(
142 text: &str,
143 value: &str,
144 default_selected: bool,
145 ) -> Result<HtmlOptionElement, JsValue>;
146 #[wasm_bindgen(catch, constructor, js_class = "Option")]
147 #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."]
148 #[doc = ""]
149 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"]
150 #[doc = ""]
151 #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"]
152 pub fn new_with_text_and_value_and_default_selected_and_selected(
153 text: &str,
154 value: &str,
155 default_selected: bool,
156 selected: bool,
157 ) -> Result<HtmlOptionElement, JsValue>;
158}