BreadcrumbItem
BreadcrumbItem is the item record used by Breadcrumb.
Each item describes one step in a location path, such as a workspace, folder, or document hierarchy. Most non-final items are clickable. The final item usually represents the current location and is displayed as plain text.
Example
use fission::prelude::*;
let item = BreadcrumbItem {
label: "Projects".into(),
on_click: Some(open_projects_action),
};
Field table
| Field | Type | Meaning | Notes / default behavior |
|---|---|---|---|
label | String | Visible text for this step in the trail. | Required. |
on_click | Option<ActionEnvelope> | Action fired when this breadcrumb step is chosen. | Defaults to None. In a trail, None usually means the item is not navigable. |
Specific advice
Use stable, human-readable labels. Breadcrumbs are for orientation first and navigation second. If labels are cryptic ids, the trail stops helping.
Related
Breadcrumb, Link, Text, and Button.