Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w-table total in pagination is broken with filtation #135

Open
Hexagon-Dev opened this issue Dec 9, 2023 · 3 comments
Open

w-table total in pagination is broken with filtation #135

Hexagon-Dev opened this issue Dec 9, 2023 · 3 comments

Comments

@Hexagon-Dev
Copy link

Checked code, why total is a value and not a computed property?
As for server data table a separate value needs to be provided like serverTotal, but as for static data I think there is no need to set total manually.
Cause of that it sets initially items.length, and after filtration is applied - value is not updated.
For example if table has 5 pages, and after filtration item decreased to 1, it would still display 5 pages but 1 item.

@alessandrodipierro
Copy link

Speaking of total and pagination, even the page count does not go hand in hand with the total if this increases after the first rendering. The page count does not increase although the "total" is calculated again.

@dang1407
Copy link

dang1407 commented Jan 1, 2024

Hello alessandrodipierro, how to sticky a header of a column when use resizable-columns for w-table. Help me please! Thank you very much.

@antoniandre
Copy link
Owner

antoniandre commented Jan 2, 2024

Hi guys @Hexagon-Dev @alessandrodipierro, please provide a reproduction link so I can help.
Here is a starting point that you can fork https://stackblitz.com/edit/waveui-3?file=src%2FApp.vue
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants