Interface RowsAppendedOptionsIf

Options of tableApi.rowsAppended(count, options) – an own area model that appended (and maybe removed) rows itself.

Example

const logLines: string[] = [];             // the data of an own area model
for (const line of newLines) logLines.push(line);
const dropped = Math.max(0, logLines.length - 100_000);
logLines.splice(0, dropped); // the app keeps its own ring buffer
tableApi.rowsAppended(newLines.length, { follow: "auto", removedAtStart: dropped });

Since

1.1.108

Hierarchy

  • RowsAppendedOptionsIf

Properties

Where the view goes – see AppendFollowMode. Default "auto".

removedAtStart?: number

Number of rows the app removed at the start (display indices 0 … n-1 before the step). Default 0.