FreeTextSearch
class FreeTextSearch extends TwillBaseFilter (View source)
This filter is used internally and will not have any effect when used in your quickfilters/filters list.
Properties
protected string|null | $label | from TwillBaseFilter | |
protected string|null | $queryString | from TwillBaseFilter | |
protected bool | $enabled | from TwillBaseFilter | |
protected Closure|null | $apply | from TwillBaseFilter | |
protected array | $searchColumns | ||
protected string|null | $searchString |
Methods
No description
Set the query string to use in the url
When passing a boolean, the filter will only be enabled when it is true.
When passing a boolean, the filter will be disabled when it is true.
No description
No description
Details
Builder
applyFilter(Builder $builder)
No description
final
__construct()
No description
static TwillBaseFilter
make()
No description
TwillBaseFilter
label(string $label)
Set a label to use for the filter.
string|null
getLabel()
No description
TwillBaseFilter
queryString(string $queryString)
Set the query string to use in the url
string
getQueryString()
No description
TwillBaseFilter
onlyEnableWhen(bool $enable = true)
When passing a boolean, the filter will only be enabled when it is true.
TwillBaseFilter
disable(bool $disable = true)
When passing a boolean, the filter will be disabled when it is true.
TwillBaseFilter
apply(Closure $closure)
The closure to apply the filter.
bool
isEnabled()
No description
FreeTextSearch
searchFor(string $searchString)
No description
FreeTextSearch
searchColumns(array $columns)
No description