maxcountryman_web_sys/features/
gen_HtmlDialogElement.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 = HTMLDialogElement , typescript_type = "HTMLDialogElement")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `HtmlDialogElement` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
13    pub type HtmlDialogElement;
14    # [wasm_bindgen (structural , method , getter , js_class = "HTMLDialogElement" , js_name = open)]
15    #[doc = "Getter for the `open` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
20    pub fn open(this: &HtmlDialogElement) -> bool;
21    # [wasm_bindgen (structural , method , setter , js_class = "HTMLDialogElement" , js_name = open)]
22    #[doc = "Setter for the `open` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
27    pub fn set_open(this: &HtmlDialogElement, value: bool);
28    # [wasm_bindgen (structural , method , getter , js_class = "HTMLDialogElement" , js_name = returnValue)]
29    #[doc = "Getter for the `returnValue` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
34    pub fn return_value(this: &HtmlDialogElement) -> String;
35    # [wasm_bindgen (structural , method , setter , js_class = "HTMLDialogElement" , js_name = returnValue)]
36    #[doc = "Setter for the `returnValue` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
41    pub fn set_return_value(this: &HtmlDialogElement, value: &str);
42    # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = close)]
43    #[doc = "The `close()` method."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
48    pub fn close(this: &HtmlDialogElement);
49    # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = close)]
50    #[doc = "The `close()` method."]
51    #[doc = ""]
52    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close)"]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
55    pub fn close_with_return_value(this: &HtmlDialogElement, return_value: &str);
56    # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = show)]
57    #[doc = "The `show()` method."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/show)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
62    pub fn show(this: &HtmlDialogElement);
63    # [wasm_bindgen (catch , method , structural , js_class = "HTMLDialogElement" , js_name = showModal)]
64    #[doc = "The `showModal()` method."]
65    #[doc = ""]
66    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)"]
67    #[doc = ""]
68    #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"]
69    pub fn show_modal(this: &HtmlDialogElement) -> Result<(), JsValue>;
70}