Replies: 5 comments 3 replies
-
|
Same issue |
Beta Was this translation helpful? Give feedback.
-
|
I would also like to have the option to persist filter values across page reloads / page switches. Is that possible somehow without extensive manual implementations? Update: I did just find this, haven't tested it yet: https://livewire-powergrid.com/table-component/component-configuration.html#persist |
Beta Was this translation helpful? Give feedback.
-
|
Bump so that it maybe gets implemented |
Beta Was this translation helpful? Give feedback.
-
|
I create this function to do these, but I don't know is this correct form to-do that public function setDefaultFilter(string $field, string $label, mixed $value): void
{
$filters = $this->filters();
$filter = collect($filters)->firstWhere('field', "===",$field);
if (!isset($filter)) {
return;
}
data_set($this->filters, "{$filter->key}.$field", $value);
$this->addEnabledFilters($field, $label);
} |
Beta Was this translation helpful? Give feedback.
-
|
Feel free to open a PR for this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
⚡ PowerGrid ⚡ Feature Request
Summary
default filter value
Why is this needed?
example: to hide disabled users by default
Suggested Solution(s)
a new method default() or defaultValue() to set default value
Beta Was this translation helpful? Give feedback.
All reactions