Interface AppendRowsContextIf<T>

What a table passes to AreaModelIf.appendRows: the active filter and sort order, so the model treats only the new rows (O(k) unsorted, O(n + k) sorted).

Since

1.1.108

Type Parameters

  • T = unknown

Hierarchy

  • AppendRowsContextIf

Properties

compare?: ((a, b) => number)

Type declaration

    • (a, b): number
    • the active sort order – new rows are inserted at their place (stable: behind equal rows)

      Parameters

      • a: T
      • b: T

      Returns number

filter?: ((row) => boolean)

Type declaration

    • (row): boolean
    • the active filter (tableOptions.externalFilterFunction) – new rows it rejects are kept but not shown

      Parameters

      • row: T

      Returns boolean

maxRows?: number

ring buffer size, see AppendRowsOptionsIf.maxRows