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

Class DialogProps

src/dialog.rs:37–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35/// - [Events](https://github.com/material-components/material-components-web-components/tree/master/packages/dialog#events)
36#[derive(Clone, PartialEq, Properties)]
37pub struct DialogProps {
38 #[prop_or_default]
39 pub open: bool,
40 #[prop_or_default]
41 pub hide_action: bool,
42 #[prop_or_default]
43 pub stacked: bool,
44 #[prop_or_default]
45 pub heading: Option<String>,
46 #[prop_or_default]
47 pub scrim_click_action: Option<String>,
48 #[prop_or_default]
49 pub escape_key_action: Option<String>,
50 #[prop_or_default]
51 pub default_action: Option<String>,
52 #[prop_or_default]
53 pub action_attribute: Option<String>,
54 #[prop_or_default]
55 pub initial_focus_attribute: Option<String>,
56 /// Binds to `opening` event on `dialog`
57 ///
58 /// See events docs to learn more.
59 #[prop_or_default]
60 pub onopening: Callback<()>,
61 /// Binds to `opened` event on `dialog`
62 ///
63 /// See events docs to learn more.
64 #[prop_or_default]
65 pub onopened: Callback<()>,
66 /// Binds to `closing` event on `dialog`
67 ///
68 /// See events docs to learn more.
69 #[prop_or_default]
70 pub onclosing: Callback<String>,
71 /// Binds to `closed` event on `dialog`
72 ///
73 /// See events docs to learn more.
74 #[prop_or_default]
75 pub onclosed: Callback<String>,
76 /// [`WeakComponentLink`] for `Dialog` which provides the following
77 /// methods:
78 /// - ```focus(&self)```
79 /// - ```blur(&self)```
80 /// - ```show(&self)```
81 /// - ```close(&self)```
82 ///
83 /// See [`WeakComponentLink`] documentation for more information
84 #[prop_or_default]
85 pub dialog_link: WeakComponentLink<Dialog>,
86 #[prop_or_default]
87 pub children: Children,
88}
89
90impl Component for Dialog {
91 type Message = ();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected