empty_list

Placeholder molecule shown in place of an empty list view.

struct Component

source

pub struct Component

A styled placeholder message for empty entity lists.

Field Type Description
entity &'static str Plural entity name, shown as no <entity>.

Implements Display.

Component::new

source

pub fn new(entity: &'static str) -> Self

Create a new empty list placeholder.

Parameter Type Description
entity &'static str the plural name of what is missing, such as tasks
returns Self The placeholder, which displays as an indented, muted no <entity>.