trait HasFilters (View source)

Properties

protected array $cachedTableFilters
$tableFilters
ComponentContainer $tableFiltersForm

Methods

void
cacheTableFilters()

No description

array
getCachedTableFilters()

No description

BaseFilter|null
getCachedTableFilter(string $name)

No description

bool
isTableFilterable()

No description

void
updatedTableFilters()

No description

void
removeTableFilter(string $filter, string|null $field = null)

No description

void
removeTableFilters()

No description

void
resetTableFiltersForm()

No description

Builder
applyFiltersToTableQuery(Builder $query)

No description

array
getTableFilters()

No description

array|null
getTableFilterState(string $name)

No description

string
parseFilterName(string $name)

No description

int|array
getTableFiltersFormColumns()

No description

string|null
getTableFiltersFormMaxHeight()

No description

array
getTableFiltersFormSchema()

No description

string|null
getTableFiltersFormWidth()

No description

string|null
getTableFiltersLayout()

No description

string
getTableFiltersSessionKey()

No description

bool

Details

void cacheTableFilters()

No description

Return Value

void

array getCachedTableFilters()

No description

Return Value

array

BaseFilter|null getCachedTableFilter(string $name)

No description

Parameters

string $name

Return Value

BaseFilter|null

ComponentContainer getTableFiltersForm()

No description

Return Value

ComponentContainer

bool isTableFilterable()

No description

Return Value

bool

void updatedTableFilters()

No description

Return Value

void

void removeTableFilter(string $filter, string|null $field = null)

No description

Parameters

string $filter
string|null $field

Return Value

void

void removeTableFilters()

No description

Return Value

void

void resetTableFiltersForm()

No description

Return Value

void

protected Builder applyFiltersToTableQuery(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

protected array getTableFilters()

No description

Return Value

array

array|null getTableFilterState(string $name)

No description

Parameters

string $name

Return Value

array|null

string parseFilterName(string $name)

No description

Parameters

string $name

Return Value

string

protected int|array getTableFiltersFormColumns()

No description

Return Value

int|array

protected string|null getTableFiltersFormMaxHeight()

No description

Return Value

string|null

protected array getTableFiltersFormSchema()

No description

Return Value

array

protected string|null getTableFiltersFormWidth()

No description

Return Value

string|null

protected string|null getTableFiltersLayout()

No description

Return Value

string|null

string getTableFiltersSessionKey()

No description

Return Value

string

protected bool shouldPersistTableFiltersInSession()

No description

Return Value

bool