Docs

Documentation versions (currently viewingVaadin 25 (prerelease))

Spreadsheet Styling

Styling API reference for the Spreadsheet component.

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.

Color Properties

Feature Property

Color of borders

--vaadin-spreadsheet-border-color

Color of cell borders

--vaadin-spreadsheet-cell-border-color

Color of header borders

--vaadin-spreadsheet-header-border-color

Color of the text

--vaadin-spreadsheet-text-color

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.

Formula Bar

Formula input field

vaadin-spreadsheet::part(formula-field)

Address input field

vaadin-spreadsheet::part(address-field)

Cell Editing

Cell input editor

vaadin-spreadsheet::part(cell-input)

Spreadsheet cell

vaadin-spreadsheet::part(cell)

Selection corner handle

vaadin-spreadsheet::part(selection-corner)

Cell range selection

vaadin-spreadsheet::part(cell-range)

Headers

Row header

vaadin-spreadsheet::part(row-header)

Column header

vaadin-spreadsheet::part(column-header)

Selected header

vaadin-spreadsheet::part(header-selected)

Sheet Tabs

Sheet tab

vaadin-spreadsheet::part(tab)

Selected sheet tab

vaadin-spreadsheet::part(tab-selected)

Add new tab button

vaadin-spreadsheet::part(new-tab-button)

Tab Navigation

Tab scroll buttons

vaadin-spreadsheet::part(scroll-tabs-button)

Scroll to start button

vaadin-spreadsheet::part(scroll-tabs-to-start-button)

Scroll to end button

vaadin-spreadsheet::part(scroll-tabs-to-end-button)

Scroll backward button

vaadin-spreadsheet::part(scroll-tabs-backward-button)

Scroll forward button

vaadin-spreadsheet::part(scroll-tabs-forward-button)

Disabled scroll buttons

vaadin-spreadsheet::part(scroll-tabs-button-disabled)

Cell Indicators

Comment indicator

vaadin-spreadsheet::part(comment-triangle)

Invalid formula indicator

vaadin-spreadsheet::part(invalid-triangle)

Interactive Elements

Popup button

vaadin-spreadsheet::part(popup-button)