diff options
author | 2023-10-02 20:18:15 +0200 | |
---|---|---|
committer | 2024-02-01 13:16:28 +0100 | |
commit | b5f1ca169567f47b3976de5b4c5a2b1ce37656d5 (patch) | |
tree | 326fae951f16d98ba6141e6cd20d6e7d02e8c71d /examples/styling | |
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/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!"), |