Export All ignores default filters applied via component attributes #1915
waqasazeemcs06
started this conversation in
BUG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Livewire PowerGrid version
6.3.1
Livewire version
3.0
Laravel version
10
Which PHP version are you using?
None
Which Theme are you using?
None
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
Encountering an issue with the "Export All" functionality when reusing a PowerGrid table with default filters applied via component attributes.
Description of the Issue
I have an OrdersTable component that is reused across different modules. One of the use cases is displaying orders specific to a user. While the filtering works correctly on the UI (orders are displayed as expected), the exported file generated via "Export All" does not respect the default filters (like userId) that were applied on page load.
Code snippets
This is how the Order table is called for an individual user
@livewire('users.orders-table', ['userId' => $user->id])
Component Definition
How do you expect it to work?
Export All should respect the default filters applied via public component attributes, just like it does in the UI display.
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions