aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-07-05 09:14:58 +0200
committerpml68 <contact@pml68.dev>2025-07-05 09:14:58 +0200
commit718d2ddb7b3e8179e36ef4881e94d7facbd17b28 (patch)
tree40987731a9d81f5a00ae885a9031a6e6e914db21 /README.md
parentfeat: "smarter" sizing for the dialog (diff)
downloadiced_dialog-718d2ddb7b3e8179e36ef4881e94d7facbd17b28.tar.gz
feat: add `on_press` and `on_press_with` methods for backdrop clicks
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index cdccd3c..87c9302 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,7 @@ impl State {
.push_button(iced_dialog::button("Cancel", Message::Cancelled))
.width(350)
.height(234)
+ .on_press(Message::Cancelled)
.into()
}
}