diff options
author | 2024-02-01 13:51:11 +0100 | |
---|---|---|
committer | 2024-02-01 13:51:11 +0100 | |
commit | 759f0e922598504705b543185bc7140a652b726a (patch) | |
tree | a7f2eb4ddee8127ace2e7002091c502d22bbb1c6 /examples/layout/src/main.rs | |
parent | b95f3ab12f863f4de668e4e6f8a75b7d3acdf2b7 (diff) | |
parent | b0d40d70a041ffaa07d94bea8fba11589c239725 (diff) | |
download | iced-759f0e922598504705b543185bc7140a652b726a.tar.gz iced-759f0e922598504705b543185bc7140a652b726a.tar.bz2 iced-759f0e922598504705b543185bc7140a652b726a.zip |
Merge pull request #2109 from avsaase/feat/checkbox-disabled
Add option to disable checkbox
Diffstat (limited to 'examples/layout/src/main.rs')
-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()), |