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