use of org.dominokit.domino.ui.icons.Icons 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());
}
use of org.dominokit.domino.ui.icons.Icons in project domino-ui-demo by DominoKit.
the class BreadcrumbViewImpl method breadcrumbWithBackground.
private void breadcrumbWithBackground() {
Row row = Row.create();
element.appendChild(row.addColumn(column.copy().addElement(Card.create("WITH MATERIAL DESIGN COLORS", "You can use material design colors").appendContent(Breadcrumb.create().setBackground(Background.PINK).addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setBackground(Background.CYAN).addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).addItem(" Data ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setBackground(Background.TEAL).addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).addItem(" Data ", evt -> {
}).addItem(" File ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setBackground(Background.ORANGE).addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).addItem(" Data ", evt -> {
}).addItem(" File ", evt -> {
}).addItem(" Extensions ", evt -> {
}).asElement()).asElement())).asElement());
element.appendChild(row.addColumn(column.copy().addElement(Card.create("WITH ICONS & MATERIAL DESIGN COLORS").appendContent(Breadcrumb.create().setBackground(Background.PINK).addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setBackground(Background.CYAN).addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).addItem(Icons.ALL.archive(), " Data ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setBackground(Background.TEAL).addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).addItem(Icons.ALL.archive(), " Data ", evt -> {
}).addItem(Icons.ALL.attachment(), " File ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setBackground(Background.ORANGE).addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).addItem(Icons.ALL.archive(), " Data ", evt -> {
}).addItem(Icons.ALL.attachment(), " File ", evt -> {
}).addItem(Icons.ALL.extension(), " Extensions ", evt -> {
}).asElement()).asElement())).asElement());
element.appendChild(Card.createCodeCard(CodeResource.INSTANCE.breadcrumbWithBackground()).asElement());
}
use of org.dominokit.domino.ui.icons.Icons in project domino-ui-demo by DominoKit.
the class BreadcrumbViewImpl method coloredBreadcrumb.
private void coloredBreadcrumb() {
Row row = Row.create();
element.appendChild(row.addColumn(column.copy().addElement(Card.create("WITH MATERIAL DESIGN COLORS", "You can use material design colors").appendContent(Breadcrumb.create().setColor(Color.PINK).addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setColor(Color.CYAN).addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).addItem(" Data ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setColor(Color.TEAL).addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).addItem(" Data ", evt -> {
}).addItem(" File ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setColor(Color.ORANGE).addItem(" Home ", evt -> {
}).addItem(" Library ", evt -> {
}).addItem(" Data ", evt -> {
}).addItem(" File ", evt -> {
}).addItem(" Extensions ", evt -> {
}).asElement()).asElement())).asElement());
element.appendChild(row.addColumn(column.copy().addElement(Card.create("WITH ICONS & MATERIAL DESIGN COLORS").appendContent(Breadcrumb.create().setColor(Color.PINK).addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setColor(Color.CYAN).addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).addItem(Icons.ALL.archive(), " Data ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setColor(Color.TEAL).addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).addItem(Icons.ALL.archive(), " Data ", evt -> {
}).addItem(Icons.ALL.attachment(), " File ", evt -> {
}).asElement()).appendContent(Breadcrumb.create().setColor(Color.ORANGE).addItem(Icons.ALL.home(), " Home ", evt -> {
}).addItem(Icons.ALL.library_books(), " Library ", evt -> {
}).addItem(Icons.ALL.archive(), " Data ", evt -> {
}).addItem(Icons.ALL.attachment(), " File ", evt -> {
}).addItem(Icons.ALL.extension(), " Extensions ", evt -> {
}).asElement()).asElement())).asElement());
element.appendChild(Card.createCodeCard(CodeResource.INSTANCE.coloredBreadcrumb()).asElement());
}
Aggregations