Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Grid CellStyleGenerator Strange Behavior
Hi Guys,
I'm just doing some work with Grid styling, and finding its behaving a little different to Table styling and not sure if this is intended or a bug.
Here's what i'm seeing WITH TABLES.
If I do a Table.CellStyleGenerator where getStyle() returns "ok"
I see a style applied to the HTML as: v-table-cell-content-ok
Here's what i'm seeing WITH GRID.
If I do a Grid.CellStyleGenerator where getStyle() returns "ok"
I see the style applied to the HTML as: v-grid-cell ok (note the space).
I'm not sure if this style is intended to be applied standalone or not? It's just different to the behavior of tables, so I just thought i'd check if this was intended behavior or if the "ok" should actually be appended to v-grid-cell style name.
Vaadin Version, Theme and Widgetset 7.4.3
Cheers,
~Ben
Just an additional update on this , now running Version 7.5.0.beta1 - and seeing the same behavior.
In addition to this, if getStyle() returns an empty string - "" - this crashes the browser. (Firefox)
If getStyle() returns null, it works fine.