Skip to content

@serenity-is/sleekgrid / ColumnMetadata

Interface: ColumnMetadata<TItem>

Defined in: src/core/column.ts:120

Per-cell metadata that can override column-level settings for a specific row.

Type Parameters

TItem

TItem = any

Row item type.

Properties

colspan?

optional colspan: number | "*"

Defined in: src/core/column.ts:122

Column span for this cell. Use "*" to span to the end of the row.


cssClass?

optional cssClass: string

Defined in: src/core/column.ts:128

Extra CSS classes applied to the cell node, like Column.cssClass which applies to every cell of the column. Note that the row level ItemMetadata.cssClasses is plural, as in SlickGrid, but this one is singular.


cssClasses?

optional cssClasses: string

Defined in: src/core/column.ts:134

Extra CSS classes applied to the cell node.

Deprecated

Use ColumnMetadata.cssClass instead, which is what the renderer reads and what SlickGrid uses. It still works as a fallback.


editor?

optional editor: EditorClass

Defined in: src/core/column.ts:138

Editor class override for this cell.


focusable?

optional focusable: boolean

Defined in: src/core/column.ts:136

Whether the cell can receive focus.


format?

optional format: ColumnFormat<TItem>

Defined in: src/core/column.ts:140

Formatter override for this cell.


formatter?

optional formatter: CompatFormatter<TItem>

Defined in: src/core/column.ts:145

Legacy formatter override.

Deprecated

Use ColumnMetadata.format instead.


selectable?

optional selectable: boolean

Defined in: src/core/column.ts:147

Whether the cell can be selected.


tabbable?

optional tabbable: boolean

Defined in: src/core/column.ts:149

Whether the cell participates in tab navigation.