Incubator Breadcrumb: Incubator Breadcrumbs for Flow is server-side component of incubator-breadcrumbs web component for Vaadin 10. It is a Web Component providing an easy way to display breadcrumb on web pages.
Usage
Create instance of Breadcrumbs
and instances of Breadcrumb
. You can set breadcrumb text and href.
Also you can set property shift, which will indicate whether breadcrumb should be hidden for
mobile view(when viewport is smaller then 420px).
Breadcrumbs breadcrumbs = new Breadcrumbs();
breadcrumbs.add(
new Breadcrumb("Home","breadcrumbs/#", true),
new Breadcrumb("Components", "breadcrumbs/#", true),
new Breadcrumb("Incubator Components", "breadcrumbs/#"),
new Breadcrumb("Breadcrumbs"));
Breadcrumbs “Home” and “Components” will be hidden when viewport is less then 420px