class Filter extends BaseFilter (View source)

Traits

Properties

static protected array $configurations from  Configurable
static protected array $importantConfigurations from  Configurable
protected string $evaluationIdentifier from  EvaluatesClosures
protected array $evaluationParametersToRemove from  EvaluatesClosures
protected Table $table from  BelongsToTable
protected bool|Closure $isHidden from  CanBeHidden
protected bool|Closure $isVisible from  CanBeHidden
protected array|int|string|Closure|null $columnSpan from  CanSpanColumns
protected array|int|string|null $columns from  HasColumns
protected $defaultState from  HasDefaultState
protected array|Closure|null $formSchema from  HasFormSchema
string|Closure|null $indicateUsing from  HasIndicators
string|Closure|null $indicator from  HasIndicators
protected string|Closure|null $label from  HasLabel
protected bool $shouldTranslateLabel from  HasLabel
protected string $name from  HasName
protected Closure|null $modifyQueryUsing from  InteractsWithTableQuery
string $formComponent

Methods

static 
configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)

No description

configure()

No description

void
setUp()

No description

evaluate($value, array $parameters = [], array $exceptParameters = [])

No description

array
resolveEvaluationParameter(string $parameter, Closure $value)

No description

bool
isEvaluationParameterRemoved(string $parameter)

No description

table(Table $table)

No description

getTable()

No description

getLivewire()

No description

array
getState()

No description

hidden(bool|Closure $condition = true)

No description

visible(bool|Closure $condition = true)

No description

bool
isHidden()

No description

columnSpan(array|int|string|Closure|null $span)

No description

array|int|string|Closure|null
getColumnSpan()

No description

columns(array|int|string|null $columns = 2)

No description

array|int|string|null
getColumns()

No description

default($state = true)

No description

getDefaultState()

No description

form(array|Closure|null $schema)

No description

array
getFormSchema()

No description

Field|null
getFormField()

No description

indicator(string|Closure|null $indicator)

No description

indicateUsing(Closure|null $callback)

No description

array
getIndicators()

No description

string
getIndicator()

No description

label(string|Closure|null $label)

No description

from  HasLabel
translateLabel(bool $shouldTranslateLabel = true)

No description

from  HasLabel
string
getLabel()

No description

from  HasLabel
name(string $name)

No description

from  HasName
string
getName()

No description

from  HasName
Builder
apply(Builder $query, array $data = [])

No description

Builder
applyToBaseQuery(Builder $query, array $data = [])

No description

query(Closure|null $callback)

No description

__construct(string $name)

No description

static BaseFilter
make(string|null $name = null)

No description

static string|null
getDefaultName()

No description

toggle()

No description

checkbox()

No description

formComponent(string $component)

No description

Details

static configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)

No description

Parameters

Closure $callback
Closure|null $during
bool $isImportant

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

evaluate($value, array $parameters = [], array $exceptParameters = [])

No description

Parameters

$value
array $parameters
array $exceptParameters

protected array getDefaultEvaluationParameters()

No description

Return Value

array

protected resolveEvaluationParameter(string $parameter, Closure $value)

No description

Parameters

string $parameter
Closure $value

protected bool isEvaluationParameterRemoved(string $parameter)

No description

Parameters

string $parameter

Return Value

bool

BelongsToTable table(Table $table)

No description

Parameters

Table $table

Return Value

BelongsToTable

Table getTable()

No description

Return Value

Table

HasTable getLivewire()

No description

Return Value

HasTable

array getState()

No description

Return Value

array

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool

CanSpanColumns columnSpan(array|int|string|Closure|null $span)

No description

Parameters

array|int|string|Closure|null $span

Return Value

CanSpanColumns

array|int|string|Closure|null getColumnSpan()

No description

Return Value

array|int|string|Closure|null

HasColumns columns(array|int|string|null $columns = 2)

No description

Parameters

array|int|string|null $columns

Return Value

HasColumns

array|int|string|null getColumns()

No description

Return Value

array|int|string|null

HasDefaultState default($state = true)

No description

Parameters

$state

Return Value

HasDefaultState

getDefaultState()

No description

HasFormSchema form(array|Closure|null $schema)

No description

Parameters

array|Closure|null $schema

Return Value

HasFormSchema

array getFormSchema()

No description

Return Value

array

protected Field|null getFormField()

No description

Return Value

Field|null

HasIndicators indicator(string|Closure|null $indicator)

No description

Parameters

string|Closure|null $indicator

Return Value

HasIndicators

HasIndicators indicateUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasIndicators

array getIndicators()

No description

Return Value

array

string getIndicator()

No description

Return Value

string

HasLabel label(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

HasLabel

HasLabel translateLabel(bool $shouldTranslateLabel = true)

No description

Parameters

bool $shouldTranslateLabel

Return Value

HasLabel

string getLabel()

No description

Return Value

string

HasName name(string $name)

No description

Parameters

string $name

Return Value

HasName

string getName()

No description

Return Value

string

Builder apply(Builder $query, array $data = [])

No description

Parameters

Builder $query
array $data

Return Value

Builder

Builder applyToBaseQuery(Builder $query, array $data = [])

No description

Parameters

Builder $query
array $data

Return Value

Builder

InteractsWithTableQuery query(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

InteractsWithTableQuery

protected bool hasQueryModificationCallback()

No description

Return Value

bool

final __construct(string $name)

No description

Parameters

string $name

static BaseFilter make(string|null $name = null)

No description

Parameters

string|null $name

Return Value

BaseFilter

static string|null getDefaultName()

No description

Return Value

string|null

Filter toggle()

No description

Return Value

Filter

Filter checkbox()

No description

Return Value

Filter

Filter formComponent(string $component)

No description

Parameters

string $component

Return Value

Filter