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