On This Page
Collapsible content with a summary.
- Fluent
- Declarative
Details.builder()
.summary(new Text("Invoices"))
.content(VerticalLayout.builder()
.content(List.of(
new Text("There are 1000 pending invoices."),
new Text("For a total of 34.213,01 Euros"),
new Anchor("Go wherever", "")
))
.spacing(true)
.build())
.opened(false)
.build()
TBD
Available properties
This is the list of available properties for a details component:
| Property | Description | Notes |
|---|---|---|
| id | id for this component | |
| cssClasses | list of css classes | content of the css attribute |
| style | inline style attributes | content of the style attribute |
| summary | the content in the summary/header | |
| content | the wrapped content | |
| opened | if it must be opened from the beginning |
You can see a full explanation of those properties at https://vaadin.com/docs/latest/components/details