You can put any content in a dialog. Just need to wrap it in a dialog component.

  • Fluent
  • Declarative

    Dialog.builder()
          .title("Title")
          .content(new Text("Hola!"))
          .closeButtonOnHeader(true)
          .build()
 

TBD

Available properties

This is the list of available properties for a details component:

PropertyDescriptionNotes
idid for this component
cssClasseslist of css classescontent of the css attribute
styleinline style attributescontent of the style attribute
headerTitlethe title in the header
headercontent to be placed in the header
footercontent to be placed in the footer
contentthe wrapped content
noPaddingif you want 0 padding for the content
modelessif you want to interact with what is behind the dialog
topposition
leftposition
draggableif you want the dialog to be draggable
widthsize
heightsize
resizableif you want the user to be able to resize the dialog
closeButtonOnHeaderadds a cross button on the header for closing the dialog, with no other effect

You can see a full explanation of those properties at https://vaadin.com/docs/latest/components/dialog