empty_list
Placeholder molecule shown in place of an empty list view.
struct Component
pub struct ComponentA styled placeholder message for empty entity lists.
| Field | Type | Description |
|---|---|---|
entity |
&'static str | Plural entity name, shown as no <entity>. |
Implements Display.
Component::new
pub fn new(entity: &'static str) -> SelfCreate 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>. |