Introduce support for disabling a checkbox
This commit is contained in:
parent
b95f3ab12f
commit
b5f1ca1695
14 changed files with 166 additions and 85 deletions
|
|
@ -85,11 +85,8 @@ impl Application for Events {
|
|||
.map(Element::from),
|
||||
);
|
||||
|
||||
let toggle = checkbox(
|
||||
"Listen to runtime events",
|
||||
self.enabled,
|
||||
Message::Toggled,
|
||||
);
|
||||
let toggle = checkbox("Listen to runtime events", self.enabled)
|
||||
.on_toggle(Message::Toggled);
|
||||
|
||||
let exit = button(
|
||||
text("Exit")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue