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

Feature(table) : Give access to filtered table length #924

Closed
dauriata opened this issue May 11, 2024 · 1 comment · Fixed by #919
Closed

Feature(table) : Give access to filtered table length #924

dauriata opened this issue May 11, 2024 · 1 comment · Fixed by #919
Labels
feature A new feature

Comments

@dauriata
Copy link
Contributor

I would need to display the resulting number of rows of a table after filtering with the search field and without backend filtering.
Migrating from buefy I used to get access directly to child property of the data filtered. With composition API and script setup now all inner properties are private.

A solution would be to add
defineExpose( {tableRows} ) at the end of the script block
or implement an event update:filteredTableRows that would return filtered data

Would be glad to contribute with a PR if there is an implementation preference

@mlmoravek
Copy link
Member

Hello @dauriata, I'm currently working on some table improvements based on other issues like #701 and generic type support.
There I have added a rows event that is fired each time the table data is processed.
I think this could be your solution.

However, this will not be released until the next major 0.9 update. But at the moment I'm very busy with my main work, and need some more time to clean it up...

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

Successfully merging a pull request may close this issue.

2 participants