user1119859
user1119859

Reputation: 719

How to layout a Dialog component in vaadin?

I am pretty new to Vaadin and wonder how to layout dialogs (com.vaadin.flow.component.dialog). As far as I see, I can simply add Components to a dialog, but how can I layout or format the components in that dialog?

I'm trying to create a simple confirmation dialog. It works, but the buttons nearly overlap each other and this way it definitely can't be delivered to any customers. So, how can I format / layout a dialog? Or, do I have to give an Id to the dialog and do all the formatting using CSS?

Upvotes: 3

Views: 1002

Answers (1)

Rob
Rob

Reputation: 6497

You do the layout of the dialog in the same manner that you would do the layout of any other component: you use the appropriate layout component, with whatever nested components and layouts give you the desired look. The styling of the dialog is done the same way as any other component.

Upvotes: 4

Related Questions