Introduce support for disabling a checkbox
This commit is contained in:
parent
b95f3ab12f
commit
b5f1ca1695
14 changed files with 166 additions and 85 deletions
|
|
@ -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!"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue