maxcountryman_web_sys/features/
gen_HtmlSlotElement.rs

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