Function cosmic::widget::nav_bar_dnd

source ยท
pub fn nav_bar_dnd<Message, D: AllowedMimeTypes>(
    model: &SingleSelectModel,
    on_activate: fn(_: Entity) -> Message,
    on_dnd_enter: impl Fn(Entity, Vec<String>) -> Message + 'static,
    on_dnd_leave: impl Fn(Entity) -> Message + 'static,
    on_dnd_drop: impl Fn(Entity, Option<D>, DndAction) -> Message + 'static,
    id: DragId,
) -> NavBar<'_, Message>
where Message: Clone + 'static,
Expand description

Navigation side panel for switching between views. Can receive drag and drop events.