diff options
author | 2023-10-02 20:18:15 +0200 | |
---|---|---|
committer | 2024-02-01 13:16:28 +0100 | |
commit | b5f1ca169567f47b3976de5b4c5a2b1ce37656d5 (patch) | |
tree | 326fae951f16d98ba6141e6cd20d6e7d02e8c71d /examples/layout | |
parent | b95f3ab12f863f4de668e4e6f8a75b7d3acdf2b7 (diff) | |
download | iced-b5f1ca169567f47b3976de5b4c5a2b1ce37656d5.tar.gz iced-b5f1ca169567f47b3976de5b4c5a2b1ce37656d5.tar.bz2 iced-b5f1ca169567f47b3976de5b4c5a2b1ce37656d5.zip |
Introduce support for disabling a `checkbox`
Diffstat (limited to 'examples/layout')
-rw-r--r-- | examples/layout/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/layout/src/main.rs b/examples/layout/src/main.rs index 6cf0e570..b626c70d 100644 --- a/examples/layout/src/main.rs +++ b/examples/layout/src/main.rs @@ -86,7 +86,8 @@ impl Application for Layout { let header = row![ text(self.example.title).size(20).font(Font::MONOSPACE), horizontal_space(Length::Fill), - checkbox("Explain", self.explain, Message::ExplainToggled), + checkbox("Explain", self.explain) + .on_toggle(Message::ExplainToggled), pick_list( Theme::ALL, Some(self.theme.clone()), |