Breadcrumbs
A navigation trail showing the user’s current location within the application hierarchy.
Basic usage
Section titled “Basic usage”Breadcrumbs.builder() .breadcrumbs(List.of( new Breadcrumb("Home", "/"), new Breadcrumb("Orders", "/orders") )) .currentItemText("Order #1234") .build()Properties
Section titled “Properties”Breadcrumbs
Section titled “Breadcrumbs”| Property | Type | Default | Description |
|---|---|---|---|
breadcrumbs | List<Breadcrumb> | — | Ancestor links in order from root to parent |
currentItemText | String | — | Label for the current page (not a link) |
style | String | — | Inline CSS |
cssClasses | String | — | CSS class names |
Breadcrumb
Section titled “Breadcrumb”| Property | Type | Description |
|---|---|---|
text | String | Link label |
href | String | Target URL (empty string = disabled link) |
Constructors
Section titled “Constructors”new Breadcrumb("Home", "/")new Breadcrumb("Orders", "/orders")Example: detail page breadcrumb
Section titled “Example: detail page breadcrumb”Breadcrumbs.builder() .breadcrumbs(List.of( new Breadcrumb("Home", "/"), new Breadcrumb("Customers", "/customers"), new Breadcrumb("Mateu Pérez", "/customers/42") )) .currentItemText("Edit") .build()