feat: export to CSV

This commit is contained in:
filippo-ferrari 2024-09-12 11:45:57 +02:00
parent c6fe2a0173
commit 157287c68c

View file

@ -86,13 +86,13 @@ public class MainLayout extends AppLayout {
}); });
// Create the header layout and add all elements // Create the header layout and add all elements
HorizontalLayout header = new HorizontalLayout(exportToCSVButton, userInfoLayout, logout); HorizontalLayout header = new HorizontalLayout(userInfoLayout, logout);
header.setWidthFull(); // Make the header take the full width header.setWidthFull(); // Make the header take the full width
header.setDefaultVerticalComponentAlignment(FlexComponent.Alignment.CENTER); header.setDefaultVerticalComponentAlignment(FlexComponent.Alignment.CENTER);
header.setJustifyContentMode(FlexComponent.JustifyContentMode.END); // Align items to the right header.setJustifyContentMode(FlexComponent.JustifyContentMode.END); // Align items to the right
header.getStyle().set("padding", "0 10px"); // Add padding around the header header.getStyle().set("padding", "0 10px"); // Add padding around the header
addToNavbar(true, toggle, viewTitle); addToNavbar(true, toggle, viewTitle, exportToCSVButton);
addToNavbar(header); addToNavbar(header);
} }