The default options of the row number column: numbers of the current view, no thousands separators, header "#", not exported, at least 36 px wide.

Example

const columnDef = new RowNumberColumnDef({ ...new RowNumberOptions(), headerLabel: "" });

Since

1.1.93

Hierarchy

  • RowNumberOptions

Implements

Constructors

Properties

exported: boolean = false

true: TableApi.copyToClipboard and TableApi.downloadExcel contain the numbers. Default false.

format: ((rowNumber) => string) = defaultRowNumberFormat

Type declaration

    • (rowNumber): string
    • Parameters

      • rowNumber: number

      Returns string

headerLabel: string = "#"

Text of the header cell. Default "#" (an empty header cell has no accessible name).

minWidthInPx: number = 36

The column is never narrower than this (px). Default 36.

mode: RowNumberMode = "display"

"display" (default) or "original", see RowNumberMode.