Client side pagination ui is implemented in many web apps today. So in an attempt to explore the same, I made a bare minimum codepen to achieve the same with the following implementation:-
📌 A dedicated
Paginator class which has the necessary data members and functions operating on these data members to give us desired functionality. Makes the pagination functionality reusable.
📌 A list of items for which this pagination has to be performed. We supply the length of the list, the recordsPerPage and the visiblePages to a
paginator object created using