Skip to content

@serenity-is/corelib / GridStyle

Enumeration: GridStyle

Defined in: src/ui/datagrid/gridstyle.ts:7

What a grid hides of the look its theme gives to grids, like the stripes of its rows, so it looks more like a plain table. The members are flags, so they can be combined. A grid that has none of them, or has no style, looks as the theme says.

Enumeration Members

Lines

Lines: 5

Defined in: src/ui/datagrid/gridstyle.ts:15

A plain header, and lines between the rows without stripes.


NoCellBorders

NoCellBorders: 2

Defined in: src/ui/datagrid/gridstyle.ts:11

There are no lines between the rows.


NoHeaderChrome

NoHeaderChrome: 4

Defined in: src/ui/datagrid/gridstyle.ts:13

The header is plain, without a background, a shadow, a top border, separators between the columns or menu buttons that are always visible.


NoStripes

NoStripes: 1

Defined in: src/ui/datagrid/gridstyle.ts:9

The rows are not striped, which is only a change for a theme that stripes them.


Plain

Plain: 7

Defined in: src/ui/datagrid/gridstyle.ts:17

None of the stripes, the lines between the rows and the chrome of the header, so the grid looks like a plain table.