Skip to main content

web_sys/features/
gen_HtmlTableSectionElement.rs

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 = "HTMLTableSectionElement",
14        typescript_type = "HTMLTableSectionElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlTableSectionElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
22    pub type HtmlTableSectionElement;
23    #[cfg(feature = "HtmlCollection")]
24    #[wasm_bindgen(method, getter, js_class = "HTMLTableSectionElement", js_name = "rows")]
25    #[doc = "Getter for the `rows` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/rows)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableSectionElement`*"]
30    pub fn rows(this: &HtmlTableSectionElement) -> HtmlCollection;
31    #[wasm_bindgen(
32        method,
33        getter,
34        js_class = "HTMLTableSectionElement",
35        js_name = "align"
36    )]
37    #[doc = "Getter for the `align` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
42    pub fn align(this: &HtmlTableSectionElement) -> ::alloc::string::String;
43    #[wasm_bindgen(
44        method,
45        setter,
46        js_class = "HTMLTableSectionElement",
47        js_name = "align"
48    )]
49    #[doc = "Setter for the `align` field of this object."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
54    pub fn set_align(this: &HtmlTableSectionElement, value: &str);
55    #[wasm_bindgen(method, getter, js_class = "HTMLTableSectionElement", js_name = "ch")]
56    #[doc = "Getter for the `ch` field of this object."]
57    #[doc = ""]
58    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)"]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
61    pub fn ch(this: &HtmlTableSectionElement) -> ::alloc::string::String;
62    #[wasm_bindgen(method, setter, js_class = "HTMLTableSectionElement", js_name = "ch")]
63    #[doc = "Setter for the `ch` field of this object."]
64    #[doc = ""]
65    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)"]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
68    pub fn set_ch(this: &HtmlTableSectionElement, value: &str);
69    #[wasm_bindgen(
70        method,
71        getter,
72        js_class = "HTMLTableSectionElement",
73        js_name = "chOff"
74    )]
75    #[doc = "Getter for the `chOff` field of this object."]
76    #[doc = ""]
77    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)"]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
80    pub fn ch_off(this: &HtmlTableSectionElement) -> ::alloc::string::String;
81    #[wasm_bindgen(
82        method,
83        setter,
84        js_class = "HTMLTableSectionElement",
85        js_name = "chOff"
86    )]
87    #[doc = "Setter for the `chOff` field of this object."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
92    pub fn set_ch_off(this: &HtmlTableSectionElement, value: &str);
93    #[wasm_bindgen(
94        method,
95        getter,
96        js_class = "HTMLTableSectionElement",
97        js_name = "vAlign"
98    )]
99    #[doc = "Getter for the `vAlign` field of this object."]
100    #[doc = ""]
101    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)"]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
104    pub fn v_align(this: &HtmlTableSectionElement) -> ::alloc::string::String;
105    #[wasm_bindgen(
106        method,
107        setter,
108        js_class = "HTMLTableSectionElement",
109        js_name = "vAlign"
110    )]
111    #[doc = "Setter for the `vAlign` field of this object."]
112    #[doc = ""]
113    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)"]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
116    pub fn set_v_align(this: &HtmlTableSectionElement, value: &str);
117    #[wasm_bindgen(
118        catch,
119        method,
120        js_class = "HTMLTableSectionElement",
121        js_name = "deleteRow"
122    )]
123    #[doc = "The `deleteRow()` method."]
124    #[doc = ""]
125    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/deleteRow)"]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
128    pub fn delete_row(this: &HtmlTableSectionElement, index: i32) -> Result<(), JsValue>;
129    #[wasm_bindgen(
130        catch,
131        method,
132        js_class = "HTMLTableSectionElement",
133        js_name = "insertRow"
134    )]
135    #[doc = "The `insertRow()` method."]
136    #[doc = ""]
137    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)"]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
140    pub fn insert_row(this: &HtmlTableSectionElement) -> Result<HtmlElement, JsValue>;
141    #[wasm_bindgen(
142        catch,
143        method,
144        js_class = "HTMLTableSectionElement",
145        js_name = "insertRow"
146    )]
147    #[doc = "The `insertRow()` method."]
148    #[doc = ""]
149    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)"]
150    #[doc = ""]
151    #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"]
152    pub fn insert_row_with_index(
153        this: &HtmlTableSectionElement,
154        index: i32,
155    ) -> Result<HtmlElement, JsValue>;
156}