feat(context_drawer): add actions to header

This commit is contained in:
Vukašin Vojinović 2024-11-09 20:50:21 +01:00 committed by Michael Murphy
parent d8357d0ea3
commit c310f4ca24
3 changed files with 32 additions and 11 deletions

View file

@ -12,7 +12,8 @@ use crate::Element;
/// An overlayed widget that attaches a toggleable context drawer to the view.
pub fn context_drawer<'a, Message: Clone + 'static, Content, Drawer>(
header: &'a str,
title: &'a str,
actions: Vec<Element<'a, Message>>,
on_close: Message,
content: Content,
drawer: Drawer,
@ -22,5 +23,5 @@ where
Content: Into<Element<'a, Message>>,
Drawer: Into<Element<'a, Message>>,
{
ContextDrawer::new(header, content, drawer, on_close, max_width)
ContextDrawer::new(title, actions, content, drawer, on_close, max_width)
}