web_sys/features/
gen_HtmlTableElement.rs

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