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