Skip to content

Commit 1c82f1e

Browse files
authored
Merge pull request #2585 from schonhoff/Multi_Term_improvements
Add set multi term on runtime
2 parents e0b416d + dbd651d commit 1c82f1e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/DataTableAbstract.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,19 @@ public function startsWithSearch($state = true)
507507
return $this;
508508
}
509509

510+
/**
511+
* Set multi_term search config at runtime.
512+
*
513+
* @param bool $multiTerm
514+
* @return $this
515+
*/
516+
public function setMultiTerm($multiTerm = true)
517+
{
518+
$this->config->set('datatables.search.multi_term', $multiTerm);
519+
520+
return $this;
521+
}
522+
510523
/**
511524
* Set total records manually.
512525
*

0 commit comments

Comments
 (0)