Function cosmic::widget::nav_bar

source ยท
pub fn nav_bar<Message: Clone + 'static>(
    model: &SingleSelectModel,
    on_activate: fn(_: Entity) -> Message,
) -> NavBar<'_, Message>
Expand description

Navigation side panel for switching between views.

For details on the model, see the segmented_button module for more details.