Skip to main content

Module empty_state

Module empty_state 

Source
Expand description

Empty state component: a centred message for lists and panels with no content.

let create = EmptyState::new("No alerts yet")
    .icon(&egui_charts::icons::icons::ALERTS)
    .description("Create one from the toolbar or the chart menu.")
    .action("Create alert")
    .fill_height()
    .show(ui);

Structsยง

EmptyState
A horizontally centred empty-state placeholder: optional icon, message, optional description and optional primary action.