Search in sources :

Example 1 with Elements

use of org.jboss.gwt.elemento.core.Elements 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());
}
Also used : Icons(org.dominokit.domino.ui.icons.Icons) UiView(org.dominokit.domino.api.client.annotations.UiView) BreadcrumbPresenter(org.dominokit.domino.breadcrumb.client.presenters.BreadcrumbPresenter) ComponentView(org.dominokit.domino.componentcase.shared.extension.ComponentView) BreadcrumbView(org.dominokit.domino.breadcrumb.client.views.BreadcrumbView) Column(org.dominokit.domino.ui.column.Column) BlockHeader(org.dominokit.domino.ui.header.BlockHeader) Color(org.dominokit.domino.ui.style.Color) Row(org.dominokit.domino.ui.row.Row) Breadcrumb(org.dominokit.domino.ui.breadcrumbs.Breadcrumb) HTMLDivElement(elemental2.dom.HTMLDivElement) CodeResource(org.dominokit.domino.breadcrumb.client.views.CodeResource) Card(org.dominokit.domino.ui.cards.Card) Elements(org.jboss.gwt.elemento.core.Elements) Background(org.dominokit.domino.ui.style.Background) Row(org.dominokit.domino.ui.row.Row)

Aggregations

HTMLDivElement (elemental2.dom.HTMLDivElement)1 UiView (org.dominokit.domino.api.client.annotations.UiView)1 BreadcrumbPresenter (org.dominokit.domino.breadcrumb.client.presenters.BreadcrumbPresenter)1 BreadcrumbView (org.dominokit.domino.breadcrumb.client.views.BreadcrumbView)1 CodeResource (org.dominokit.domino.breadcrumb.client.views.CodeResource)1 ComponentView (org.dominokit.domino.componentcase.shared.extension.ComponentView)1 Breadcrumb (org.dominokit.domino.ui.breadcrumbs.Breadcrumb)1 Card (org.dominokit.domino.ui.cards.Card)1 Column (org.dominokit.domino.ui.column.Column)1 BlockHeader (org.dominokit.domino.ui.header.BlockHeader)1 Icons (org.dominokit.domino.ui.icons.Icons)1 Row (org.dominokit.domino.ui.row.Row)1 Background (org.dominokit.domino.ui.style.Background)1 Color (org.dominokit.domino.ui.style.Color)1 Elements (org.jboss.gwt.elemento.core.Elements)1