1#![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 = "HTMLTableElement",
14 typescript_type = "HTMLTableElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `HtmlTableElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
22 pub type HtmlTableElement;
23 #[cfg(feature = "HtmlTableCaptionElement")]
24 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "caption")]
25 #[doc = "Getter for the `caption` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/caption)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`, `HtmlTableElement`*"]
30 pub fn caption(this: &HtmlTableElement) -> Option<HtmlTableCaptionElement>;
31 #[cfg(feature = "HtmlTableCaptionElement")]
32 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "caption")]
33 #[doc = "Setter for the `caption` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/caption)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`, `HtmlTableElement`*"]
38 pub fn set_caption(this: &HtmlTableElement, value: Option<&HtmlTableCaptionElement>);
39 #[cfg(feature = "HtmlTableSectionElement")]
40 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "tHead")]
41 #[doc = "Getter for the `tHead` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tHead)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"]
46 pub fn t_head(this: &HtmlTableElement) -> Option<HtmlTableSectionElement>;
47 #[cfg(feature = "HtmlTableSectionElement")]
48 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "tHead")]
49 #[doc = "Setter for the `tHead` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tHead)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"]
54 pub fn set_t_head(this: &HtmlTableElement, value: Option<&HtmlTableSectionElement>);
55 #[cfg(feature = "HtmlTableSectionElement")]
56 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "tFoot")]
57 #[doc = "Getter for the `tFoot` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tFoot)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"]
62 pub fn t_foot(this: &HtmlTableElement) -> Option<HtmlTableSectionElement>;
63 #[cfg(feature = "HtmlTableSectionElement")]
64 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "tFoot")]
65 #[doc = "Setter for the `tFoot` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tFoot)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"]
70 pub fn set_t_foot(this: &HtmlTableElement, value: Option<&HtmlTableSectionElement>);
71 #[cfg(feature = "HtmlCollection")]
72 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "tBodies")]
73 #[doc = "Getter for the `tBodies` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tBodies)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableElement`*"]
78 pub fn t_bodies(this: &HtmlTableElement) -> HtmlCollection;
79 #[cfg(feature = "HtmlCollection")]
80 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "rows")]
81 #[doc = "Getter for the `rows` field of this object."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rows)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableElement`*"]
86 pub fn rows(this: &HtmlTableElement) -> HtmlCollection;
87 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "align")]
88 #[doc = "Getter for the `align` field of this object."]
89 #[doc = ""]
90 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/align)"]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
93 pub fn align(this: &HtmlTableElement) -> ::alloc::string::String;
94 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "align")]
95 #[doc = "Setter for the `align` field of this object."]
96 #[doc = ""]
97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/align)"]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
100 pub fn set_align(this: &HtmlTableElement, value: &str);
101 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "border")]
102 #[doc = "Getter for the `border` field of this object."]
103 #[doc = ""]
104 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/border)"]
105 #[doc = ""]
106 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
107 pub fn border(this: &HtmlTableElement) -> ::alloc::string::String;
108 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "border")]
109 #[doc = "Setter for the `border` field of this object."]
110 #[doc = ""]
111 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/border)"]
112 #[doc = ""]
113 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
114 pub fn set_border(this: &HtmlTableElement, value: &str);
115 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "frame")]
116 #[doc = "Getter for the `frame` field of this object."]
117 #[doc = ""]
118 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/frame)"]
119 #[doc = ""]
120 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
121 pub fn frame(this: &HtmlTableElement) -> ::alloc::string::String;
122 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "frame")]
123 #[doc = "Setter for the `frame` field of this object."]
124 #[doc = ""]
125 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/frame)"]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
128 pub fn set_frame(this: &HtmlTableElement, value: &str);
129 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "rules")]
130 #[doc = "Getter for the `rules` field of this object."]
131 #[doc = ""]
132 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rules)"]
133 #[doc = ""]
134 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
135 pub fn rules(this: &HtmlTableElement) -> ::alloc::string::String;
136 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "rules")]
137 #[doc = "Setter for the `rules` field of this object."]
138 #[doc = ""]
139 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rules)"]
140 #[doc = ""]
141 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
142 pub fn set_rules(this: &HtmlTableElement, value: &str);
143 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "summary")]
144 #[doc = "Getter for the `summary` field of this object."]
145 #[doc = ""]
146 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/summary)"]
147 #[doc = ""]
148 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
149 pub fn summary(this: &HtmlTableElement) -> ::alloc::string::String;
150 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "summary")]
151 #[doc = "Setter for the `summary` field of this object."]
152 #[doc = ""]
153 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/summary)"]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
156 pub fn set_summary(this: &HtmlTableElement, value: &str);
157 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "width")]
158 #[doc = "Getter for the `width` field of this object."]
159 #[doc = ""]
160 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/width)"]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
163 pub fn width(this: &HtmlTableElement) -> ::alloc::string::String;
164 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "width")]
165 #[doc = "Setter for the `width` field of this object."]
166 #[doc = ""]
167 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/width)"]
168 #[doc = ""]
169 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
170 pub fn set_width(this: &HtmlTableElement, value: &str);
171 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "bgColor")]
172 #[doc = "Getter for the `bgColor` field of this object."]
173 #[doc = ""]
174 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/bgColor)"]
175 #[doc = ""]
176 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
177 pub fn bg_color(this: &HtmlTableElement) -> ::alloc::string::String;
178 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "bgColor")]
179 #[doc = "Setter for the `bgColor` field of this object."]
180 #[doc = ""]
181 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/bgColor)"]
182 #[doc = ""]
183 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
184 pub fn set_bg_color(this: &HtmlTableElement, value: &str);
185 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "cellPadding")]
186 #[doc = "Getter for the `cellPadding` field of this object."]
187 #[doc = ""]
188 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellPadding)"]
189 #[doc = ""]
190 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
191 pub fn cell_padding(this: &HtmlTableElement) -> ::alloc::string::String;
192 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "cellPadding")]
193 #[doc = "Setter for the `cellPadding` field of this object."]
194 #[doc = ""]
195 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellPadding)"]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
198 pub fn set_cell_padding(this: &HtmlTableElement, value: &str);
199 #[wasm_bindgen(method, getter, js_class = "HTMLTableElement", js_name = "cellSpacing")]
200 #[doc = "Getter for the `cellSpacing` field of this object."]
201 #[doc = ""]
202 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellSpacing)"]
203 #[doc = ""]
204 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
205 pub fn cell_spacing(this: &HtmlTableElement) -> ::alloc::string::String;
206 #[wasm_bindgen(method, setter, js_class = "HTMLTableElement", js_name = "cellSpacing")]
207 #[doc = "Setter for the `cellSpacing` field of this object."]
208 #[doc = ""]
209 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellSpacing)"]
210 #[doc = ""]
211 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
212 pub fn set_cell_spacing(this: &HtmlTableElement, value: &str);
213 #[wasm_bindgen(method, js_class = "HTMLTableElement", js_name = "createCaption")]
214 #[doc = "The `createCaption()` method."]
215 #[doc = ""]
216 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createCaption)"]
217 #[doc = ""]
218 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
219 pub fn create_caption(this: &HtmlTableElement) -> HtmlElement;
220 #[wasm_bindgen(method, js_class = "HTMLTableElement", js_name = "createTBody")]
221 #[doc = "The `createTBody()` method."]
222 #[doc = ""]
223 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTBody)"]
224 #[doc = ""]
225 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
226 pub fn create_t_body(this: &HtmlTableElement) -> HtmlElement;
227 #[wasm_bindgen(method, js_class = "HTMLTableElement", js_name = "createTFoot")]
228 #[doc = "The `createTFoot()` method."]
229 #[doc = ""]
230 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTFoot)"]
231 #[doc = ""]
232 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
233 pub fn create_t_foot(this: &HtmlTableElement) -> HtmlElement;
234 #[wasm_bindgen(method, js_class = "HTMLTableElement", js_name = "createTHead")]
235 #[doc = "The `createTHead()` method."]
236 #[doc = ""]
237 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTHead)"]
238 #[doc = ""]
239 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
240 pub fn create_t_head(this: &HtmlTableElement) -> HtmlElement;
241 #[wasm_bindgen(method, js_class = "HTMLTableElement", js_name = "deleteCaption")]
242 #[doc = "The `deleteCaption()` method."]
243 #[doc = ""]
244 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteCaption)"]
245 #[doc = ""]
246 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
247 pub fn delete_caption(this: &HtmlTableElement);
248 #[wasm_bindgen(catch, method, js_class = "HTMLTableElement", js_name = "deleteRow")]
249 #[doc = "The `deleteRow()` method."]
250 #[doc = ""]
251 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteRow)"]
252 #[doc = ""]
253 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
254 pub fn delete_row(this: &HtmlTableElement, index: i32) -> Result<(), JsValue>;
255 #[wasm_bindgen(method, js_class = "HTMLTableElement", js_name = "deleteTFoot")]
256 #[doc = "The `deleteTFoot()` method."]
257 #[doc = ""]
258 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTFoot)"]
259 #[doc = ""]
260 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
261 pub fn delete_t_foot(this: &HtmlTableElement);
262 #[wasm_bindgen(method, js_class = "HTMLTableElement", js_name = "deleteTHead")]
263 #[doc = "The `deleteTHead()` method."]
264 #[doc = ""]
265 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTHead)"]
266 #[doc = ""]
267 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
268 pub fn delete_t_head(this: &HtmlTableElement);
269 #[wasm_bindgen(catch, method, js_class = "HTMLTableElement", js_name = "insertRow")]
270 #[doc = "The `insertRow()` method."]
271 #[doc = ""]
272 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/insertRow)"]
273 #[doc = ""]
274 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
275 pub fn insert_row(this: &HtmlTableElement) -> Result<HtmlElement, JsValue>;
276 #[wasm_bindgen(catch, method, js_class = "HTMLTableElement", js_name = "insertRow")]
277 #[doc = "The `insertRow()` method."]
278 #[doc = ""]
279 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/insertRow)"]
280 #[doc = ""]
281 #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"]
282 pub fn insert_row_with_index(
283 this: &HtmlTableElement,
284 index: i32,
285 ) -> Result<HtmlElement, JsValue>;
286}