Search in sources :

Example 1 with Footer

use of com.vaadin.flow.component.html.Footer in project aire-components by aire-ux.

the class Overlay method createFooter.

protected Footer createFooter() {
    val footer = new Footer();
    footer.getElement().setAttribute("slot", "footer");
    return footer;
}
Also used : lombok.val(lombok.val) Footer(com.vaadin.flow.component.html.Footer)

Example 2 with Footer

use of com.vaadin.flow.component.html.Footer in project docs by vaadin.

the class DialogNoPadding method createDialogLayout.

private static VerticalLayout createDialogLayout(Dialog dialog) {
    H2 dialogTitle = new H2("Create new employee");
    Header header = new Header(dialogTitle);
    VerticalLayout personalInformationSection = createPersonalInformationSection();
    VerticalLayout employeeInformationSection = createEmployeeInformationSection();
    VerticalLayout scrollContent = new VerticalLayout(personalInformationSection, employeeInformationSection);
    Scroller scroller = new Scroller(scrollContent);
    Footer footer = createFooter(dialog);
    VerticalLayout dialogContent = new VerticalLayout(header, scroller, footer);
    dialogContent.setPadding(false);
    dialogContent.setSpacing(false);
    dialogContent.getStyle().remove("width");
    dialogContent.setAlignItems(FlexComponent.Alignment.STRETCH);
    dialogContent.setClassName("dialog-no-padding-example-overlay");
    return dialogContent;
}
Also used : Header(com.vaadin.flow.component.html.Header) Footer(com.vaadin.flow.component.html.Footer) VerticalLayout(com.vaadin.flow.component.orderedlayout.VerticalLayout) H2(com.vaadin.flow.component.html.H2) Scroller(com.vaadin.flow.component.orderedlayout.Scroller)

Example 3 with Footer

use of com.vaadin.flow.component.html.Footer in project sapl-demos by heutelbeck.

the class MainLayout method createFooter.

private Footer createFooter() {
    Footer layout = new Footer();
    layout.addClassNames("flex", "items-center", "my-s", "px-m", "py-xs");
    return layout;
}
Also used : Footer(com.vaadin.flow.component.html.Footer)

Example 4 with Footer

use of com.vaadin.flow.component.html.Footer in project docs by vaadin.

the class DialogNoPadding method createFooter.

private static Footer createFooter(Dialog dialog) {
    Button cancelButton = new Button("Cancel", e -> dialog.close());
    cancelButton.addThemeVariants(ButtonVariant.LUMO_TERTIARY);
    Button saveButton = new Button("Save", e -> dialog.close());
    saveButton.addThemeVariants(ButtonVariant.LUMO_PRIMARY);
    HorizontalLayout buttonLayout = new HorizontalLayout(cancelButton, saveButton);
    buttonLayout.setJustifyContentMode(FlexComponent.JustifyContentMode.END);
    return new Footer(buttonLayout);
}
Also used : Button(com.vaadin.flow.component.button.Button) Footer(com.vaadin.flow.component.html.Footer) HorizontalLayout(com.vaadin.flow.component.orderedlayout.HorizontalLayout)

Example 5 with Footer

use of com.vaadin.flow.component.html.Footer in project isis-lab by apache-isis-committers.

the class _SideMenuLayout method createFooter.

private Footer createFooter() {
    Footer layout = new Footer();
    layout.addClassNames("flex", "items-center", "my-s", "px-m", "py-xs");
    return layout;
}
Also used : Footer(com.vaadin.flow.component.html.Footer)

Aggregations

Footer (com.vaadin.flow.component.html.Footer)5 Button (com.vaadin.flow.component.button.Button)1 H2 (com.vaadin.flow.component.html.H2)1 Header (com.vaadin.flow.component.html.Header)1 HorizontalLayout (com.vaadin.flow.component.orderedlayout.HorizontalLayout)1 Scroller (com.vaadin.flow.component.orderedlayout.Scroller)1 VerticalLayout (com.vaadin.flow.component.orderedlayout.VerticalLayout)1 lombok.val (lombok.val)1