Reputation: 15925
For example how do I reduce the spacing between the buttons in the following HorizontalLayout:
The code:
HorizontalLayout horizontalLayout = new HorizontalLayout();
horizontalLayout.setWidthFull();
horizontalLayout.setJustifyContentMode(JustifyContentMode.END);
buttons.forEach(button -> {
horizontalLayout.add(button);
horizontalLayout.addThemeVariants(ButtonVariant.LUMO_SMALL);
});
** This is for Vaadin Flow (Vaadin 14+)
Upvotes: 3
Views: 657