web_sys/features/
gen_BarProp.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "BarProp",
10 typescript_type = "BarProp"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `BarProp` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `BarProp`*"]
18 pub type BarProp;
19 #[wasm_bindgen(catch, method, getter, js_class = "BarProp", js_name = "visible")]
20 #[doc = "Getter for the `visible` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `BarProp`*"]
25 pub fn visible(this: &BarProp) -> Result<bool, JsValue>;
26 #[wasm_bindgen(catch, method, setter, js_class = "BarProp", js_name = "visible")]
27 #[doc = "Setter for the `visible` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `BarProp`*"]
32 pub fn set_visible(this: &BarProp, value: bool) -> Result<(), JsValue>;
33}