Topic: Table Pagination Error after update to MDB Pro Angular v8.0

ais free asked 5 years ago


Expected behavior Table work as before update.

Actual behavior Table does not load, and gives the below error in console. Table is a child component on the view. Not sure if that matters. The error is being thrown by the parent component.

Resources (screenshots, code snippets etc.) AgentDashboardComponent.html:7 ERROR TypeError: this.mdbTablePagination.setMaxVisibleItemsNumberTo is not a function at ClientsTableComponent.push../src/app/agent/agent-dashboard/clients-table/clients-table.component.ts.ClientsTableComponent.ngAfterViewInit (clients-table.component.ts:116) at callProviderLifecycles (core.js:22093) at callElementProvidersLifecycles (core.js:22067) at callLifecycleHooksChildrenFirst (core.js:22057) at checkAndUpdateView (core.js:29942) at callViewAction (core.js:30174) at execComponentViewsAction (core.js:30116) at checkAndUpdateView (core.js:29939) at callViewAction (core.js:30174) at execEmbeddedViewsAction (core.js:30137)


Arkadiusz Idzikowski staff commented 5 years ago

What version did you use before update? Please take a look at the documentation and update your code accordingly. There were some changes in tables in version 7.5.0.

https://mdbootstrap.com/docs/angular/tables/pagination/


ais free commented 5 years ago

The work around provided in this ticket fixed my problems. https://mdbootstrap.com/support/angular/this-mdbpagination-is-undefined/


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.0.0
  • Device: Macbook Pro
  • Browser: Chrome
  • OS: 10.14.5
  • Provided sample code: No
  • Provided link: No