Skip to content

Commit

Permalink
Gallery: use custom Guard again
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Aug 27, 2024
1 parent d4e0da6 commit 8566652
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/gallery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ fn widgets() -> Box<dyn Widget<Data = AppData>> {
row!["ScrollLabel", ScrollLabel::new(text).map_any()],
row![
"EditBox",
EditBox::string(|data: &Data| data.text.clone())
.with_msg(|s| Item::Text(s.to_string())),
EditBox::new(Guard).with_text("length must not be a multiple of 8!"),
],
row![
"Button (text)",
Expand Down

0 comments on commit 8566652

Please sign in to comment.