rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.78k stars 337 forks source link

[2.0] Method getAppliedFilter('column_name')` does not exist #687

Closed mikemand closed 2 years ago

mikemand commented 2 years ago

I am in the process of upgrading a site from v1 to v2, and cannot continue. The upgrade guide says there is a new method for getting the applied filter, and links here: https://rappasoft.com/docs/laravel-livewire-tables/v2/filters/applying-filters#content-apply-filters-at-the-component-level

However, there is no method called getAppliedFilter. There is a getAppliedFilters method with a docblock that suggests it would accept a parameter, but it doesn't actually use any parameters. It also returns applied filters for ALL columns.

jijiezheng commented 2 years ago

you can use $this->getAppliedFilterWithValue('sth') instend

rappasoft commented 2 years ago

you can use $this->getAppliedFilterWithValue('sth') instend

This works, i'll update the documentation.