Function getLeadingRowNumberColumnCount

  • 1 if the first column is a RowNumberColumnDef, otherwise 0 – the offset of the built-in columns that are bound to "the first column": the CheckboxColumnDef, the tree arrow and the checkbox of showCheckboxWihoutExtraColumn sit at this index (behind the row numbers).

    Parameters

    • columnDefs: undefined | ColumnDefIf[]

      the column definitions of the table model

    Returns 0 | 1

    the number of leading row number columns

    Example

    const firstDataColumn = getLeadingRowNumberColumnCount(tableModel.getColumnDefs());
    

    Since

    1.1.93