Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private createPagination() {
const {
pageOptions,
paginationHolder,
grid: { usageStatistics }
} = this.props;
const { totalCount, perPage, page } = pageOptions;
const options = {
totalItems: totalCount,
itemsPerPage: perPage,
page,
usageStatistics
};
this.tuiPagination = new TuiPagination(this.el!, options);
this.addEventListener();
paginationHolder.setPagination(this.tuiPagination);
}