Table pagination not showing arrows


Topic: Table pagination not showing arrows

Ana R. Williams asked 3 years ago

I make i table with pagination, but only appear two icons, when it should have 4 icons, two move one and one position, and two to finish table and in the beginning of table. Actual behaviour Only appear two, the most curious it´s that icons are the final and beginning but works step and step one position? @ViewChild(MdbTablePaginationComponent) mdbTablePagination: MdbTablePaginationComponent; @ViewChild(MdbTableDirective) mdbTable: MdbTableDirective; @ViewChild('userModal') userModal:any; public noResults: boolean = false; public elements: any = []; public previous: any = []; this.mdbTable.setDataSource(this.items); this.items = this.mdbTable.getDataSource(); this.previous = this.mdbTable.getDataSource(); this.mdbTablePagination.setMaxVisibleItemsNumberTo(10); this.mdbTablePagination.calculateFirstItemIndex(); this.mdbTablePagination.calculateLastItemIndex(); this.cdRef.detectChanges();


Arkadiusz Idzikowski staff commented 3 years ago

@Ana R. Williams Please provide a complete HTML/TS code on which we will be able to reproduce this problem.

Which version of MDB Angular do you use? You mentioned MDB5 Angular v1.6.1 in the specification of this issue but this code is from MDB4 Angular. Are there any errors in the console when you try to render the datatable component?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB5 1.6.1
  • Device: HP
  • Browser: Win
  • OS: 11
  • Provided sample code: No
  • Provided link: Yes
Tags