MCPcopy Index your code
hub / github.com/plotly/dash / lastPage

Function lastPage

components/dash-table/src/dash-table/derived/paginator.ts:25–27  ·  view source on GitHub ↗
(data: Data, page_size: number)

Source from the content-addressed store, hash-verified

23}
24
25export function lastPage(data: Data, page_size: number) {
26 return Math.ceil(data.length / page_size);
27}
28
29function makePaginator(params: IPaginatorParams | null): IPaginator {
30 if (params === null) {

Callers 2

getFrontEndPaginationFunction · 0.90
getterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…