UNPKG

@atlaskit/dynamic-table

Version:

A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.

4 lines 213 B
export var computeIndex = function computeIndex(index, page, rowsPerPage) { var itemOnPreviousPages = rowsPerPage && isFinite(rowsPerPage) ? (page - 1) * rowsPerPage : 0; return index + itemOnPreviousPages; };