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;
}
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;
}
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;
}
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);
}
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;
}
Aggregations