web_sys/features/
gen_HtmlFieldSetElement.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 = HTMLFieldSetElement , typescript_type = "HTMLFieldSetElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `HtmlFieldSetElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
14 pub type HtmlFieldSetElement;
15 # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = disabled)]
16 #[doc = "Getter for the `disabled` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/disabled)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
21 pub fn disabled(this: &HtmlFieldSetElement) -> bool;
22 # [wasm_bindgen (structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = disabled)]
23 #[doc = "Setter for the `disabled` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/disabled)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
28 pub fn set_disabled(this: &HtmlFieldSetElement, value: bool);
29 #[cfg(feature = "HtmlFormElement")]
30 # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = form)]
31 #[doc = "Getter for the `form` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/form)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`, `HtmlFormElement`*"]
36 pub fn form(this: &HtmlFieldSetElement) -> Option<HtmlFormElement>;
37 # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = name)]
38 #[doc = "Getter for the `name` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/name)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
43 pub fn name(this: &HtmlFieldSetElement) -> ::alloc::string::String;
44 # [wasm_bindgen (structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = name)]
45 #[doc = "Setter for the `name` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/name)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
50 pub fn set_name(this: &HtmlFieldSetElement, value: &str);
51 # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = type)]
52 #[doc = "Getter for the `type` field of this object."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/type)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
57 pub fn type_(this: &HtmlFieldSetElement) -> ::alloc::string::String;
58 #[cfg(feature = "HtmlCollection")]
59 # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = elements)]
60 #[doc = "Getter for the `elements` field of this object."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/elements)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFieldSetElement`*"]
65 pub fn elements(this: &HtmlFieldSetElement) -> HtmlCollection;
66 # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = willValidate)]
67 #[doc = "Getter for the `willValidate` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/willValidate)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
72 pub fn will_validate(this: &HtmlFieldSetElement) -> bool;
73 #[cfg(feature = "ValidityState")]
74 # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = validity)]
75 #[doc = "Getter for the `validity` field of this object."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/validity)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`, `ValidityState`*"]
80 pub fn validity(this: &HtmlFieldSetElement) -> ValidityState;
81 # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLFieldSetElement" , js_name = validationMessage)]
82 #[doc = "Getter for the `validationMessage` field of this object."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/validationMessage)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
87 pub fn validation_message(
88 this: &HtmlFieldSetElement,
89 ) -> Result<::alloc::string::String, JsValue>;
90 # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = checkValidity)]
91 #[doc = "The `checkValidity()` method."]
92 #[doc = ""]
93 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/checkValidity)"]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
96 pub fn check_validity(this: &HtmlFieldSetElement) -> bool;
97 # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = reportValidity)]
98 #[doc = "The `reportValidity()` method."]
99 #[doc = ""]
100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/reportValidity)"]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
103 pub fn report_validity(this: &HtmlFieldSetElement) -> bool;
104 # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = setCustomValidity)]
105 #[doc = "The `setCustomValidity()` method."]
106 #[doc = ""]
107 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/setCustomValidity)"]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"]
110 pub fn set_custom_validity(this: &HtmlFieldSetElement, error: &str);
111}