vaadin / flow-components

Java counterpart of Vaadin Web Components
101 stars 66 forks source link

Vaadin Flow Spreadsheet Conditional Formatting dataFormat color support feature #6835

Open AndriiRevaEpicor opened 3 days ago

AndriiRevaEpicor commented 3 days ago

Describe your motivation

We have a possibility to use dataFormat within Conditional Formatting to change value's color in the cell. Apache POI support it but Spreadsheet is not.

Describe the solution you'd like

A good solution which I would to apply is to use dataFormat as string value as: #,##0_);[Red](#,##0) - which means if value less than zero then apply red color and parentheses.

Describe alternatives you've considered

The only solution for this time is Java API approach (e.g.: SheetConditionalFormatting.java). It's good but with dataFormat it will be more laconically.

Additional context

Link to related issue: https://github.com/vaadin/flow-components/issues/6819