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

Class IconButtonToggleProps

src/icon_button_toggle.rs:32–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30/// - [Events](https://github.com/material-components/material-components-web-components/tree/master/packages/icon-button-toggle#events)
31#[derive(Clone, PartialEq, Properties)]
32pub struct IconButtonToggleProps {
33 #[prop_or_default]
34 pub on: bool,
35 #[prop_or_default]
36 pub on_icon: String,
37 #[prop_or_default]
38 pub off_icon: String,
39 #[prop_or_default]
40 pub label: String,
41 #[prop_or_default]
42 pub disabled: bool,
43 /// Binds to `MDCIconButtonToggle:change`.
44 ///
45 /// Callback's parameter is the `isOn` value passed
46 ///
47 /// See events docs to learn more.
48 #[prop_or_default]
49 pub onchange: Callback<bool>,
50 #[prop_or_default]
51 pub children: Children,
52}
53
54impl Component for IconButtonToggle {
55 type Message = ();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected