class TernaryFilter extends SelectFilter (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
protected Arrayable|string|Closure|null $options from  HasOptions
protected string|Closure|null $placeholder from  HasPlaceholder
protected Closure|null $modifyRelationshipQueryUsing from  HasRelationship
protected string|Closure|null $attribute from  SelectFilter
protected bool|Closure $isMultiple from  SelectFilter
protected bool|Closure $isStatic from  SelectFilter
protected bool|Closure $isSearchable from  SelectFilter
protected int|Closure $optionsLimit from  SelectFilter
protected string|Closure|null $trueLabel
protected string|Closure|null $falseLabel

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

options(Arrayable|string|Closure|null $options)

No description

array
getOptions()

No description

placeholder(string|Closure|null $placeholder)

No description

string|null
getPlaceholder()

No description

relationship(string $relationshipName, string $titleColumnName = null, Closure $callback = null)

No description

string
getRelationshipKey()

No description

array
getRelationshipOptions()

No description

bool
queriesRelationships()

No description

Builder
getRelationship()

No description

string
getRelationshipName()

No description

string
attribute(string|Closure|null $name)

No description

column(string|Closure|null $name) deprecated

No description

static(bool|Closure $condition = true)

No description

multiple(bool|Closure $condition = true)

No description

searchable(bool|Closure $condition = true)

No description

string
getAttribute()

No description

string
getColumn() deprecated

No description

getFormSelectComponent() deprecated

No description

bool
isMultiple()

No description

bool
isSearchable()

No description

optionsLimit(int|Closure $limit)

No description

int
getOptionsLimit()

No description

trueLabel(string|Closure|null $trueLabel)

No description

falseLabel(string|Closure|null $falseLabel)

No description

string|null
getTrueLabel()

No description

string|null
getFalseLabel()

No description

nullable()

No description

boolean()

No description

queries(Closure $true, Closure $false, Closure $blank = null)

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

HasOptions options(Arrayable|string|Closure|null $options)

No description

Parameters

Arrayable|string|Closure|null $options

Return Value

HasOptions

array getOptions()

No description

Return Value

array

HasPlaceholder placeholder(string|Closure|null $placeholder)

No description

Parameters

string|Closure|null $placeholder

Return Value

HasPlaceholder

string|null getPlaceholder()

No description

Return Value

string|null

HasRelationship relationship(string $relationshipName, string $titleColumnName = null, Closure $callback = null)

No description

Parameters

string $relationshipName
string $titleColumnName
Closure $callback

Return Value

HasRelationship

string getRelationshipKey()

No description

Return Value

string

protected array getRelationshipOptions()

No description

Return Value

array

bool queriesRelationships()

No description

Return Value

bool

protected Builder getRelationship()

No description

Return Value

Builder

protected string getRelationshipName()

No description

Return Value

string

protected string getRelationshipTitleColumnName()

No description

Return Value

string

SelectFilter attribute(string|Closure|null $name)

No description

Parameters

string|Closure|null $name

Return Value

SelectFilter

SelectFilter column(string|Closure|null $name) deprecated

deprecated Use `attribute()` instead.

No description

Parameters

string|Closure|null $name

Return Value

SelectFilter

SelectFilter static(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

SelectFilter

SelectFilter multiple(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

SelectFilter

SelectFilter searchable(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

SelectFilter

string getAttribute()

No description

Return Value

string

string getColumn() deprecated

deprecated Use `getAttribute()` instead.

No description

Return Value

string

protected Select getFormSelectComponent() deprecated

deprecated Overwrite `getFormField()` instead.

No description

Return Value

Select

bool isMultiple()

No description

Return Value

bool

bool isSearchable()

No description

Return Value

bool

SelectFilter optionsLimit(int|Closure $limit)

No description

Parameters

int|Closure $limit

Return Value

SelectFilter

int getOptionsLimit()

No description

Return Value

int

TernaryFilter trueLabel(string|Closure|null $trueLabel)

No description

Parameters

string|Closure|null $trueLabel

Return Value

TernaryFilter

TernaryFilter falseLabel(string|Closure|null $falseLabel)

No description

Parameters

string|Closure|null $falseLabel

Return Value

TernaryFilter

string|null getTrueLabel()

No description

Return Value

string|null

string|null getFalseLabel()

No description

Return Value

string|null

TernaryFilter nullable()

No description

Return Value

TernaryFilter

TernaryFilter boolean()

No description

Return Value

TernaryFilter

TernaryFilter queries(Closure $true, Closure $false, Closure $blank = null)

No description

Parameters

Closure $true
Closure $false
Closure $blank

Return Value

TernaryFilter