diff options
author | 2024-02-01 13:51:11 +0100 | |
---|---|---|
committer | 2024-02-01 13:51:11 +0100 | |
commit | 759f0e922598504705b543185bc7140a652b726a (patch) | |
tree | a7f2eb4ddee8127ace2e7002091c502d22bbb1c6 /examples/styling | |
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/styling')
-rw-r--r-- | examples/styling/src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs index 10f3c79d..4718a123 100644 --- a/examples/styling/src/main.rs +++ b/examples/styling/src/main.rs @@ -115,11 +115,8 @@ impl Sandbox for Styling { .width(Length::Fill) .height(100); - let checkbox = checkbox( - "Check me!", - self.checkbox_value, - Message::CheckboxToggled, - ); + let checkbox = checkbox("Check me!", self.checkbox_value) + .on_toggle(Message::CheckboxToggled); let toggler = toggler( String::from("Toggle me!"), |