agnostic-vue
Version:
AgnosticUI (Vue)
7 lines (6 loc) • 368 B
TypeScript
import { allowedOffsets, PageArrayItem } from "agnostic-helpers/dist/usePagination";
export default function usePagingGenerator(initialPage: number, offset: allowedOffsets, totalPages: number): {
currentPaginationPage: import("vue").Ref<number>;
paginationPages: import("vue").Ref<PageArrayItem[]>;
handlePaginationUpdate: (pageNumber: number) => void;
};