// Do not edit. This file is generated.
// MoonBit type: HTMLTableSectionElement
// Specifications: html.idl
///|
/// [HTMLTableSectionElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement)
#external
pub type HTMLTableSectionElement
///|
pub impl TJsValue for HTMLTableSectionElement with to_js(
self : HTMLTableSectionElement,
) -> JsValue = "%identity"
///|
pub impl FromJsAny for HTMLTableSectionElement with from_js_any(value : JsAny) -> HTMLTableSectionElement = "%identity"
///|
/// Unchecked downcast — no runtime type check is performed.
/// Prefer `try_into()` for checked downcasts.
#deprecated("Use unsafe_into or try_into instead")
pub fn[T : THTMLTableSectionElement] HTMLTableSectionElement::into(
self : HTMLTableSectionElement,
) -> T = "%identity"
///|
/// Unchecked downcast — no runtime type check is performed.
/// WARNING: If the underlying JS value is not of type T, this will silently
/// produce a value with incorrect type, leading to undefined behavior.
pub fn[T : THTMLTableSectionElement] HTMLTableSectionElement::unsafe_into(
self : HTMLTableSectionElement,
) -> T = "%identity"
///|
pub impl HasConstructor for HTMLTableSectionElement with constructor_name() {
"HTMLTableSectionElement"
}
///|
/// Checked downcast — returns None if the JS value is not an instance of T.
pub fn[T : THTMLTableSectionElement + HasConstructor] HTMLTableSectionElement::try_into(
self : HTMLTableSectionElement,
) -> T? {
if js_instanceof(TJsValue::to_js(self), T::constructor_name()) {
Some(self.unsafe_into())
} else {
None
}
}
///|
pub impl THTMLTableSectionElement for HTMLTableSectionElement
///|
pub impl THTMLElement for HTMLTableSectionElement
///|
pub impl TElement for HTMLTableSectionElement
///|
pub impl TNode for HTMLTableSectionElement
///|
pub impl TEventTarget for HTMLTableSectionElement
///|
pub fn HTMLTableSectionElement::new() -> HTMLTableSectionElement {
html_table_section_element_new_ffi()
}
///|
/// [HTMLTableSectionElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement) interface.
pub trait THTMLTableSectionElement: THTMLElement {
rows(self : Self) -> HTMLCollection = _
insert_row(self : Self, index? : Int) -> HTMLTableRowElement = _
delete_row(self : Self, index : Int) -> Unit = _
align(self : Self) -> String = _
set_align(self : Self, align : String) -> Unit = _
ch(self : Self) -> String = _
set_ch(self : Self, ch : String) -> Unit = _
ch_off(self : Self) -> String = _
set_ch_off(self : Self, ch_off : String) -> Unit = _
v_align(self : Self) -> String = _
set_v_align(self : Self, v_align : String) -> Unit = _
}
///|
/// [HTMLTableSectionElement.rows](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/rows)
impl THTMLTableSectionElement with rows(self : Self) -> HTMLCollection {
html_table_section_element_rows_ffi(TJsValue::to_js(self))
}
///|
/// [HTMLTableSectionElement.insertRow](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)
impl THTMLTableSectionElement with insert_row(self : Self, index? : Int) -> HTMLTableRowElement {
html_table_section_element_insert_row_ffi(
TJsValue::to_js(self),
opt_to_js(index),
)
}
///|
/// [HTMLTableSectionElement.deleteRow](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/deleteRow)
impl THTMLTableSectionElement with delete_row(self : Self, index : Int) -> Unit {
html_table_section_element_delete_row_ffi(
TJsValue::to_js(self),
TJsValue::to_js(index),
)
}
///|
/// [HTMLTableSectionElement.align](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)
impl THTMLTableSectionElement with align(self : Self) -> String {
html_table_section_element_align_ffi(TJsValue::to_js(self))
}
///|
/// [HTMLTableSectionElement.align](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)
impl THTMLTableSectionElement with set_align(self : Self, align : String) -> Unit {
html_table_section_element_set_align_ffi(
TJsValue::to_js(self),
TJsValue::to_js(align),
)
}
///|
/// [HTMLTableSectionElement.ch](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)
impl THTMLTableSectionElement with ch(self : Self) -> String {
html_table_section_element_ch_ffi(TJsValue::to_js(self))
}
///|
/// [HTMLTableSectionElement.ch](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)
impl THTMLTableSectionElement with set_ch(self : Self, ch : String) -> Unit {
html_table_section_element_set_ch_ffi(
TJsValue::to_js(self),
TJsValue::to_js(ch),
)
}
///|
/// [HTMLTableSectionElement.chOff](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)
impl THTMLTableSectionElement with ch_off(self : Self) -> String {
html_table_section_element_ch_off_ffi(TJsValue::to_js(self))
}
///|
/// [HTMLTableSectionElement.chOff](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)
impl THTMLTableSectionElement with set_ch_off(self : Self, ch_off : String) -> Unit {
html_table_section_element_set_ch_off_ffi(
TJsValue::to_js(self),
TJsValue::to_js(ch_off),
)
}
///|
/// [HTMLTableSectionElement.vAlign](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)
impl THTMLTableSectionElement with v_align(self : Self) -> String {
html_table_section_element_v_align_ffi(TJsValue::to_js(self))
}
///|
/// [HTMLTableSectionElement.vAlign](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)
impl THTMLTableSectionElement with set_v_align(self : Self, v_align : String) -> Unit {
html_table_section_element_set_v_align_ffi(
TJsValue::to_js(self),
TJsValue::to_js(v_align),
)
}
///|
#cfg(target="js")
extern "js" fn html_table_section_element_new_ffi() -> HTMLTableSectionElement = "() => new HTMLTableSectionElement()"
///|
#cfg(target="js")
extern "js" fn html_table_section_element_rows_ffi_js(obj : JsValue) -> JsValue = "(obj) => obj.rows"
///|
#cfg(target="js")
fn html_table_section_element_rows_ffi(obj : JsValue) -> HTMLCollection {
html_table_section_element_rows_ffi_js(obj).unsafe_cast()
}
///|
#cfg(target="js")
extern "js" fn html_table_section_element_insert_row_ffi_js(
obj : JsValue,
index : JsValue,
) -> JsValue = "(obj, index) => obj.insertRow(index)"
///|
#cfg(target="js")
fn html_table_section_element_insert_row_ffi(
obj : JsValue,
index : JsValue,
) -> HTMLTableRowElement {
html_table_section_element_insert_row_ffi_js(obj, index).unsafe_cast()
}
///|
#cfg(target="js")
extern "js" fn html_table_section_element_delete_row_ffi(
obj : JsValue,
index : JsValue,
) -> Unit = "(obj, index) => obj.deleteRow(index)"
///|
#cfg(target="js")
extern "js" fn html_table_section_element_align_ffi_js(
obj : JsValue,
) -> JsValue = "(obj) => obj.align"
///|
#cfg(target="js")
fn html_table_section_element_align_ffi(obj : JsValue) -> String {
html_table_section_element_align_ffi_js(obj).unsafe_cast()
}
///|
#cfg(target="js")
extern "js" fn html_table_section_element_set_align_ffi(
obj : JsValue,
align : JsValue,
) -> Unit = "(obj, align) => { obj.align = align; }"
///|
#cfg(target="js")
extern "js" fn html_table_section_element_ch_ffi_js(obj : JsValue) -> JsValue = "(obj) => obj.ch"
///|
#cfg(target="js")
fn html_table_section_element_ch_ffi(obj : JsValue) -> String {
html_table_section_element_ch_ffi_js(obj).unsafe_cast()
}
///|
#cfg(target="js")
extern "js" fn html_table_section_element_set_ch_ffi(
obj : JsValue,
ch : JsValue,
) -> Unit = "(obj, ch) => { obj.ch = ch; }"
///|
#cfg(target="js")
extern "js" fn html_table_section_element_ch_off_ffi_js(
obj : JsValue,
) -> JsValue = "(obj) => obj.chOff"
///|
#cfg(target="js")
fn html_table_section_element_ch_off_ffi(obj : JsValue) -> String {
html_table_section_element_ch_off_ffi_js(obj).unsafe_cast()
}
///|
#cfg(target="js")
extern "js" fn html_table_section_element_set_ch_off_ffi(
obj : JsValue,
ch_off : JsValue,
) -> Unit = "(obj, chOff) => { obj.chOff = chOff; }"
///|
#cfg(target="js")
extern "js" fn html_table_section_element_v_align_ffi_js(
obj : JsValue,
) -> JsValue = "(obj) => obj.vAlign"
///|
#cfg(target="js")
fn html_table_section_element_v_align_ffi(obj : JsValue) -> String {
html_table_section_element_v_align_ffi_js(obj).unsafe_cast()
}
///|
#cfg(target="js")
extern "js" fn html_table_section_element_set_v_align_ffi(
obj : JsValue,
v_align : JsValue,
) -> Unit = "(obj, vAlign) => { obj.vAlign = vAlign; }"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_new_ffi() -> HTMLTableSectionElement = "webapi_HTMLTableSectionElement" "new"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_rows_ffi(obj : JsValue) -> HTMLCollection = "webapi_HTMLTableSectionElement" "get_rows"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_insert_row_ffi(
obj : JsValue,
index : JsValue,
) -> HTMLTableRowElement = "webapi_HTMLTableSectionElement" "insertRow"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_delete_row_ffi(
obj : JsValue,
index : JsValue,
) -> Unit = "webapi_HTMLTableSectionElement" "deleteRow"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_align_ffi_wasm(obj : JsValue) -> JsValue = "webapi_HTMLTableSectionElement" "get_align"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_align_ffi(obj : JsValue) -> String {
jsvalue_to_string(html_table_section_element_align_ffi_wasm(obj))
}
///|
#cfg(target="wasm-gc")
fn html_table_section_element_set_align_ffi(
obj : JsValue,
align : JsValue,
) -> Unit = "webapi_HTMLTableSectionElement" "set_align"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_ch_ffi_wasm(obj : JsValue) -> JsValue = "webapi_HTMLTableSectionElement" "get_ch"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_ch_ffi(obj : JsValue) -> String {
jsvalue_to_string(html_table_section_element_ch_ffi_wasm(obj))
}
///|
#cfg(target="wasm-gc")
fn html_table_section_element_set_ch_ffi(obj : JsValue, ch : JsValue) -> Unit = "webapi_HTMLTableSectionElement" "set_ch"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_ch_off_ffi_wasm(obj : JsValue) -> JsValue = "webapi_HTMLTableSectionElement" "get_chOff"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_ch_off_ffi(obj : JsValue) -> String {
jsvalue_to_string(html_table_section_element_ch_off_ffi_wasm(obj))
}
///|
#cfg(target="wasm-gc")
fn html_table_section_element_set_ch_off_ffi(
obj : JsValue,
ch_off : JsValue,
) -> Unit = "webapi_HTMLTableSectionElement" "set_chOff"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_v_align_ffi_wasm(obj : JsValue) -> JsValue = "webapi_HTMLTableSectionElement" "get_vAlign"
///|
#cfg(target="wasm-gc")
fn html_table_section_element_v_align_ffi(obj : JsValue) -> String {
jsvalue_to_string(html_table_section_element_v_align_ffi_wasm(obj))
}
///|
#cfg(target="wasm-gc")
fn html_table_section_element_set_v_align_ffi(
obj : JsValue,
v_align : JsValue,
) -> Unit = "webapi_HTMLTableSectionElement" "set_vAlign"