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