Skip to main content

web_sys/features/
gen_HtmlSlotElement.rs

1#![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 = "HTMLSlotElement",
14        typescript_type = "HTMLSlotElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlSlotElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"]
22    pub type HtmlSlotElement;
23    #[wasm_bindgen(method, getter, js_class = "HTMLSlotElement", js_name = "name")]
24    #[doc = "Getter for the `name` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/name)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"]
29    pub fn name(this: &HtmlSlotElement) -> ::alloc::string::String;
30    #[wasm_bindgen(method, setter, js_class = "HTMLSlotElement", js_name = "name")]
31    #[doc = "Setter for the `name` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/name)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"]
36    pub fn set_name(this: &HtmlSlotElement, value: &str);
37    #[wasm_bindgen(method, js_class = "HTMLSlotElement", js_name = "assignedNodes")]
38    #[doc = "The `assignedNodes()` method."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"]
43    pub fn assigned_nodes(this: &HtmlSlotElement) -> ::js_sys::Array;
44    #[cfg(feature = "AssignedNodesOptions")]
45    #[wasm_bindgen(method, js_class = "HTMLSlotElement", js_name = "assignedNodes")]
46    #[doc = "The `assignedNodes()` method."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`, `HtmlSlotElement`*"]
51    pub fn assigned_nodes_with_options(
52        this: &HtmlSlotElement,
53        options: &AssignedNodesOptions,
54    ) -> ::js_sys::Array;
55}