Topic: bug on angular tables example
iomote
pro
asked 7 years ago
changePage(event: any) {
if (event.target.text >= 1 && event.target.text <= this.lastPageNumber /* this.maxVisibleItems */) {
this.activePage = +event.target.text;
this.firstVisibleIndex = this.activePage * this.maxVisibleItems - this.maxVisibleItems + 1;
this.lastVisibleIndex = this.activePage * this.maxVisibleItems;
}
}
Arkadiusz Idzikowski
staff
answered 7 years ago
iomote
pro
answered 7 years ago
...&& event.target.text <= this.lastPageNumber... instead of ...&& event.target.text <= this.maxVisibleItems
Damian Gemza
staff
answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.2
- Device: any
- Browser: any
- OS: any
- Provided sample code: No
- Provided link: Yes