diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-10-14 09:15:23 +0200 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-10-14 09:15:23 +0200 |
| commit | 06fd88a8c59af0d2d7d435d336fc9dd3e96aebe7 (patch) | |
| tree | 3a4c81e1d6a24b339c8095546c8e86ad39438287 | |
| parent | chore: add `documentation` URL to crate manifest (diff) | |
| download | iced_dialog-06fd88a8c59af0d2d7d435d336fc9dd3e96aebe7.tar.gz | |
feat: take `IntoFragment` in `button`
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ pub mod dialog; pub use dialog::Dialog; use iced_widget::Button; use iced_widget::core; +use iced_widget::text::IntoFragment; use iced_widget::{container, text}; /// Creates a new [`Dialog`] with the given base and dialog content. @@ -25,7 +26,7 @@ where /// /// [`Button`]: https://docs.iced.rs/iced/widget/struct.Button.html pub fn button<'a, Message, Theme, Renderer>( - content: &'a str, + content: impl IntoFragment<'a>, message: Message, ) -> Button<'a, Message, Theme, Renderer> where |
