web_sys/features/
gen_HtmlTableRowElement.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 = HTMLTableRowElement , typescript_type = "HTMLTableRowElement")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `HtmlTableRowElement` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
14    pub type HtmlTableRowElement;
15    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = rowIndex)]
16    #[doc = "Getter for the `rowIndex` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/rowIndex)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
21    pub fn row_index(this: &HtmlTableRowElement) -> i32;
22    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = sectionRowIndex)]
23    #[doc = "Getter for the `sectionRowIndex` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/sectionRowIndex)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
28    pub fn section_row_index(this: &HtmlTableRowElement) -> i32;
29    #[cfg(feature = "HtmlCollection")]
30    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = cells)]
31    #[doc = "Getter for the `cells` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/cells)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableRowElement`*"]
36    pub fn cells(this: &HtmlTableRowElement) -> HtmlCollection;
37    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = align)]
38    #[doc = "Getter for the `align` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/align)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
43    pub fn align(this: &HtmlTableRowElement) -> ::alloc::string::String;
44    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = align)]
45    #[doc = "Setter for the `align` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/align)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
50    pub fn set_align(this: &HtmlTableRowElement, value: &str);
51    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = ch)]
52    #[doc = "Getter for the `ch` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/ch)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
57    pub fn ch(this: &HtmlTableRowElement) -> ::alloc::string::String;
58    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = ch)]
59    #[doc = "Setter for the `ch` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/ch)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
64    pub fn set_ch(this: &HtmlTableRowElement, value: &str);
65    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = chOff)]
66    #[doc = "Getter for the `chOff` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/chOff)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
71    pub fn ch_off(this: &HtmlTableRowElement) -> ::alloc::string::String;
72    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = chOff)]
73    #[doc = "Setter for the `chOff` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/chOff)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
78    pub fn set_ch_off(this: &HtmlTableRowElement, value: &str);
79    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = vAlign)]
80    #[doc = "Getter for the `vAlign` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/vAlign)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
85    pub fn v_align(this: &HtmlTableRowElement) -> ::alloc::string::String;
86    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = vAlign)]
87    #[doc = "Setter for the `vAlign` field of this object."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/vAlign)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
92    pub fn set_v_align(this: &HtmlTableRowElement, value: &str);
93    # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = bgColor)]
94    #[doc = "Getter for the `bgColor` field of this object."]
95    #[doc = ""]
96    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/bgColor)"]
97    #[doc = ""]
98    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
99    pub fn bg_color(this: &HtmlTableRowElement) -> ::alloc::string::String;
100    # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = bgColor)]
101    #[doc = "Setter for the `bgColor` field of this object."]
102    #[doc = ""]
103    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/bgColor)"]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
106    pub fn set_bg_color(this: &HtmlTableRowElement, value: &str);
107    # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = deleteCell)]
108    #[doc = "The `deleteCell()` method."]
109    #[doc = ""]
110    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/deleteCell)"]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
113    pub fn delete_cell(this: &HtmlTableRowElement, index: i32) -> Result<(), JsValue>;
114    # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = insertCell)]
115    #[doc = "The `insertCell()` method."]
116    #[doc = ""]
117    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/insertCell)"]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
120    pub fn insert_cell(this: &HtmlTableRowElement) -> Result<HtmlElement, JsValue>;
121    # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = insertCell)]
122    #[doc = "The `insertCell()` method."]
123    #[doc = ""]
124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/insertCell)"]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"]
127    pub fn insert_cell_with_index(
128        this: &HtmlTableRowElement,
129        index: i32,
130    ) -> Result<HtmlElement, JsValue>;
131}