Function cosmic::widget::context_drawer::context_drawer

source ยท
pub fn context_drawer<'a, Message: Clone + 'static, Content, Drawer>(
    title: Option<Cow<'a, str>>,
    header_actions: Vec<Element<'a, Message>>,
    header_opt: Option<Element<'a, Message>>,
    footer_opt: Option<Element<'a, Message>>,
    on_close: Message,
    content: Content,
    drawer: Drawer,
    max_width: f32,
) -> ContextDrawer<'a, Message>
where Content: Into<Element<'a, Message>>, Drawer: Into<Element<'a, Message>>,
Expand description

An overlayed widget that attaches a toggleable context drawer to the view.