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