Replies: 1 comment 3 replies
-
Have you tried This is the default listener to refresh the data table. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I have a table that displays data bfiltered by date (default '') ) using the builder function,
public function builder(): Builder {
....
->when(!empty($this->from), function ($q) { return $q->where('start', '>=', $this->from); })
....
the date is sent from a js component :
Livewire.emit('DateRangeSelected', date1.format('YYYY-MM-DD'))
The listener in the table is like :
public function DateRangeSelected($from = ''){
$this->from = $from;
$this->refresh;
All is working well, except the table is not refreshing,
I have to click in any table header so that the data is reordered and rendered,
note: The table was on a tailwind tab, so i put it out of it, but the same, the table is not refreshing
plz advice
Thanks
Beta Was this translation helpful? Give feedback.
All reactions