Dashboard
- Usage
- Styling
Style Properties
The following style properties can be used in CSS stylesheets to customize the appearance of this component.
To apply values to these properties globally in your application UI, place them in a CSS block using the html {…}
selector.
See Lumo Style Properties for more information on style properties.
Feature | Property | Default Value |
---|---|---|
Minimum column width |
|
|
Maximum column width |
|
|
Maximum column count |
| |
Minimum row height |
|
|
Dashboard padding (around contents) |
|
|
Widget gap |
|
|
Widget background |
|
|
Widget corner radius |
|
|
Widget border width |
|
|
Widget border color |
|
|
Widget shadow (non-editable) |
|
|
Editable widget shadow |
|
|
Selected widget shadow |
|
|
Drop target / resize box background color |
|
|
Drop target / resize box border |
|
|
CSS Selectors
The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.
- Dashboard root element
-
vaadin-dashboard
- Static Dashboard Layout (React & Lit)
-
vaadin-dashboard-layout
Widgets
- Root element
-
vaadin-dashboard-widget
Widget States
- Editable
-
vaadin-dashboard-widget
[editable] - Focused
-
vaadin-dashboard-widget
[focused] - Selected
-
vaadin-dashboard-widget
[selected] - Being dragged
-
vaadin-dashboard-widget
[dragging] - Being resized
-
vaadin-dashboard-widget
[resizing] - Accessible move mode
-
vaadin-dashboard-widget
[move-mode] - Accessible resize mode
-
vaadin-dashboard-widget
[resize-mode]
Widget Parts
- Header
-
vaadin-dashboard-widget
::part(header) - Title
-
vaadin-dashboard-widget
::part(title) - Content area
-
vaadin-dashboard-widget
::part(content) - Drag handle / Move button
-
vaadin-dashboard-widget
::part(move-button) - Remove button
-
vaadin-dashboard-widget
::part(remove-button) - Resize handle / button
-
vaadin-dashboard-widget
::part(resize-button)
Sections
- Root element
-
vaadin-dashboard-section
Accessible Move & Resize Modes
To target move-mode buttons on Sections, replace vaadin-dashboard-widget
with vaadin-dashboard-section
in the selectors below.
- Move backward button
-
vaadin-dashboard-widget
::part(move-backward-button) - Move forward button
-
vaadin-dashboard-widget
::part(move-forward-button) - Move apply button
-
vaadin-dashboard-widget
::part(move-apply-button) - Shrink width button
-
vaadin-dashboard-widget
::part(resize-shrink-width-button) - Grow width button
-
vaadin-dashboard-widget
::part(resize-grow-width-button) - Shrink height button
-
vaadin-dashboard-widget
::part(resize-shrink-width-button) - Grow height button
-
vaadin-dashboard-widget
::part(resize-grow-width-button) - Resize apply button
-
vaadin-dashboard-widget
::part(resize-apply-button)