TwillBaseFilter
abstract class TwillBaseFilter (View source)
Properties
protected string|null | $label | ||
protected string|null | $queryString | ||
protected bool | $enabled | ||
protected Closure|null | $apply |
Methods
Builder
applyFilter(Builder $builder)
No description
__construct()
No description
static TwillBaseFilter
make()
No description
label(string $label)
Set a label to use for the filter.
string|null
getLabel()
No description
queryString(string $queryString)
Set the query string to use in the url
string
getQueryString()
No description
onlyEnableWhen(bool $enable = true)
When passing a boolean, the filter will only be enabled when it is true.
disable(bool $disable = true)
When passing a boolean, the filter will be disabled when it is true.
bool
isEnabled()
No description
Details
abstract 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