Skip to main content

web_sys/features/
gen_HtmlLegendElement.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 = "HTMLLegendElement",
14        typescript_type = "HTMLLegendElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlLegendElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"]
22    pub type HtmlLegendElement;
23    #[cfg(feature = "HtmlFormElement")]
24    #[wasm_bindgen(method, getter, js_class = "HTMLLegendElement", js_name = "form")]
25    #[doc = "Getter for the `form` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/form)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlLegendElement`*"]
30    pub fn form(this: &HtmlLegendElement) -> Option<HtmlFormElement>;
31    #[wasm_bindgen(method, getter, js_class = "HTMLLegendElement", js_name = "align")]
32    #[doc = "Getter for the `align` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/align)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"]
37    pub fn align(this: &HtmlLegendElement) -> ::alloc::string::String;
38    #[wasm_bindgen(method, setter, js_class = "HTMLLegendElement", js_name = "align")]
39    #[doc = "Setter for the `align` field of this object."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/align)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"]
44    pub fn set_align(this: &HtmlLegendElement, value: &str);
45}