Stats widget above the table linked to the table data
Hello,
I have added this DashboardTable widget in my Dashboard and added the filters to search.
I am looking to add some stats at the top of the table from all the paginated results and those stats should be linked to the search filters used in the table.
Please let me know how to do that?
Thank you

Solution:Jump to solution
use this in your table widget
```php
public function updated(string $name, string $value)
{...
6 Replies
https://filamentphp.com/docs/3.x/panels/resources/widgets
I've not tried this myself, but you can get the data like this, not sure if it'll contain filters etc though π
@Illizian I am using a --table widget on the Dashboard page, is this going to work with ExposesTableToWidgets please ?
I guess InteractsWithPageTable will work if we are using a widget class.
Thank you for pointing this out.
I will try it
Sorry, I didn't spot the part about it being a dashboard. Good luck
Unfortunately, the stats widgets aren't working with the table widgets
Solution
use this in your table widget
in your stats widgets you can do this
$this->tableFilter
will contain the table filter valueThank you so much @Leandro Ferreira , I have actually changed it to be a resource and it worked great except for some permission issues, which I have posted in the other thread.