feat(image_button): add optional removable button overlay
This commit is contained in:
parent
9f27d2b7f5
commit
2c445d820f
5 changed files with 206 additions and 103 deletions
|
|
@ -38,6 +38,13 @@ pub fn button<'a, Message>(
|
|||
Button::new(content)
|
||||
}
|
||||
|
||||
pub fn custom_image_button<'a, Message>(
|
||||
content: impl Into<Element<'a, Message>>,
|
||||
on_remove: Option<Message>,
|
||||
) -> Button<'a, Message, crate::Renderer> {
|
||||
Button::new_image(content, on_remove)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
#[derive(Setters)]
|
||||
pub struct Builder<'a, Message, Variant> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue