maxcountryman_web_sys/features/
gen_HtmlLabelElement.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLabelElement , typescript_type = "HTMLLabelElement")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `HtmlLabelElement` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"]
13 pub type HtmlLabelElement;
14 #[cfg(feature = "HtmlFormElement")]
15 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = form)]
16 #[doc = "Getter for the `form` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/form)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlLabelElement`*"]
21 pub fn form(this: &HtmlLabelElement) -> Option<HtmlFormElement>;
22 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = htmlFor)]
23 #[doc = "Getter for the `htmlFor` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/htmlFor)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"]
28 pub fn html_for(this: &HtmlLabelElement) -> String;
29 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLabelElement" , js_name = htmlFor)]
30 #[doc = "Setter for the `htmlFor` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/htmlFor)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"]
35 pub fn set_html_for(this: &HtmlLabelElement, value: &str);
36 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = control)]
37 #[doc = "Getter for the `control` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"]
42 pub fn control(this: &HtmlLabelElement) -> Option<HtmlElement>;
43}