use of org.dominokit.domino.ui.breadcrumbs.Breadcrumb in project domino-ui-demo by DominoKit.
the class BreadcrumbViewImpl method basicBreadcrumb.
private void basicBreadcrumb() {
Row row = Row.create();
element.appendChild(row.addColumn(column.copy().addElement(Card.create("BASIC EXAMPLES", "Separators are automatically added for breadcrumb elements").appendContent(Breadcrumb.create().addItem(" Home ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).addItem(" Data ", evt -> {
}).asElement()).asElement())).asElement());
element.appendChild(row.addColumn(column.copy().addElement(Card.create("WITH ICONS").appendContent(Breadcrumb.create().addItem(Icons.ALL.home(), " Home ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).addItem(Icons.ALL.archive(), " Data ", evt -> {
}).asElement()).asElement())).asElement());
element.appendChild(Card.createCodeCard(CodeResource.INSTANCE.basicBreadcrumb()).asElement());
}
Aggregations