Datatables empty datasource pagination issue


Topic: Datatables empty datasource pagination issue

Dave Moniz pro premium priority asked 11 months ago

Expected behavior

When the dataSource is empty both pagination arrows should be disabled

Actual behavior

When the dataSource is empty the next page arrow is NOT disabled and if you use it weird things happen

Resources (screenshots, code snippets etc.)

As always, I can provide sample code

enter image description here


Arkadiusz Idzikowski staff commented 11 months ago

Thank you for letting us know about this problem, we will take a closer look at that. Pagination component has [prevButtonDisabled] and [nextButtonDisabled] inputs, you can try to use them as a work-around for now.


Dave Moniz pro premium priority commented 11 months ago

Good to know, thanks.

Those are missing from the docs though, are there any other pagination customizations I can do? (that should also be added to the docs)


Grzegorz Bujański staff commented 11 months ago

These inputs are created to exchange information between components. Therefore, we did not include them in the documentation. We will discuss in the team, the possibility of adding it to the documentation.


Dave Moniz pro premium priority commented 10 months ago

This is not resolved as of the first stable release MDB5 1.0.0


Arkadiusz Idzikowski staff commented 10 months ago

@Dave Moniz The fix should be added in the next update.


Dave Moniz pro premium priority answered 8 months ago

Can confirm this is fixed as of v1.1.0


FREE CONSULTATION

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

Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 1.0.0-beta5
  • Device: PC
  • Browser: Google Chrome
  • OS: Arch Linux
  • Provided sample code: No
  • Provided link: No