MCPcopy Create free account
hub / github.com/angular-rust/yew-components / DrawerProps

Class DrawerProps

src/drawer.rs:52–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50/// - [Events](https://github.com/material-components/material-components-web-components/tree/master/packages/drawer#events)
51#[derive(Clone, PartialEq, Properties)]
52pub struct DrawerProps {
53 #[prop_or_default]
54 pub open: bool,
55 #[prop_or_default]
56 pub has_header: Option<bool>,
57 #[prop_or_default]
58 pub drawer_type: String,
59 /// Binds to `opened` event on `drawer`
60 ///
61 /// See events docs to learn more.
62 #[prop_or_default]
63 pub onopened: Callback<()>,
64 /// Binds to `closed` event on `drawer`
65 ///
66 /// See events docs to learn more.
67 #[prop_or_default]
68 pub onclosed: Callback<()>,
69 #[prop_or_default]
70 pub link: WeakComponentLink<Drawer>,
71 #[prop_or_default]
72 pub children: Children,
73}
74
75impl Component for Drawer {
76 type Message = DrawerMsg;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected