Filter option not showing #1164
marcwitteveen
started this conversation in
General
Replies: 2 comments 2 replies
-
Can you try this ? public function filter(): array
{
return [
Filter::inputText('current_value', 'route_limits.current_value'),
];
} |
Beta Was this translation helpful? Give feedback.
2 replies
-
Solved, the method is called filterS with an S and not filter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently updated to latest Laravel, Livewire and PowerGrid.
I am using the following code but I can not get filters to work, can somebody help me and tell me what I am missing?
Thanks,
Marc
`<?php
namespace App\Livewire;
use App\Models\RouteLimits;
use Illuminate\Database\Eloquent\Builder;
use PowerComponents\LivewirePowerGrid\Footer;
use PowerComponents\LivewirePowerGrid\Button;
use PowerComponents\LivewirePowerGrid\Column;
use PowerComponents\LivewirePowerGrid\PowerGrid;
use PowerComponents\LivewirePowerGrid\Facades\Filter;
use PowerComponents\LivewirePowerGrid\PowerGridColumns;
use PowerComponents\LivewirePowerGrid\PowerGridComponent;
final class LimitsTable extends PowerGridComponent
{
//Messages informing success/error data is updated.
public bool $showUpdateMessages = true;
}`
Beta Was this translation helpful? Give feedback.
All reactions