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