Skip to content

Commit 2d2255a

Browse files
authored
Expose autofilter setter to disable post filtering for already filtered datasets
I had a problem when using the collection one so the already filtered dataset coming from an api was performing extra filtering and thus not showing the right results. This fixed this problem
1 parent 2e641c3 commit 2d2255a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/DataTableAbstract.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,18 @@ public function skipPaging(): static
583583

584584
return $this;
585585
}
586+
587+
/**
588+
* Skip auto filtering as needed.
589+
*
590+
* @return $this
591+
*/
592+
public function skipAutoFilter(): static
593+
{
594+
$this->autoFilter = false;
595+
596+
return $this;
597+
}
586598

587599
/**
588600
* Push a new column name to blacklist.

0 commit comments

Comments
 (0)