display indices before the step of the removed rows, ascending, unique
display indices after the step of the inserted rows, ascending, unique
The display index after the step of the first remaining row at or after an old index – for a position that must stay on a row (e.g. the first visible row) when that row itself was removed.
display index before the step
the index after the step (the end if no old row at or after index remains)
The new ranges of an old range of rows lo … hi (inclusive): removed rows leave it, inserted rows inside split
it (they are not part of it). hi = Number.MAX_SAFE_INTEGER (whole columns) stays open at the end.
first row of the range before the step
last row of the range before the step (inclusive)
the pieces after the step, ascending, [] if all its rows were removed
How the display indices of the body rows move when rows are removed and inserted in one step (live data:
tableApi.appendRows()/rowsAppended(), since 1.1.108) – so selection, focus and anchor stay at the same rows instead of being cleared. DOM-free.Order: first the
removedrows leave (indices before the step), then theinsertedrows come in (indices after the step). An old row keeps its relative order.Example
Example
Since
1.1.108