TernaryFilter
class TernaryFilter extends SelectFilter (View source)
Traits
Properties
protected string | $evaluationIdentifier | from EvaluatesClosures | |
static protected Closure>> | $macros | from Macroable | |
protected Table | $table | from BelongsToTable | |
protected bool|Closure | $isHidden | from CanBeHidden | |
protected bool|Closure | $isVisible | from CanBeHidden | |
protected array<string,mixed> | $resetState | from CanResetState | |
protected array|int|string|Closure|null | $columnSpan | from CanSpanColumns | |
protected array|int|string|Closure|null | $columnStart | from CanSpanColumns | |
protected array|int|string|null | $columns | from HasColumns | |
protected mixed | $defaultState | from HasDefaultState | |
protected Component[] | $formSchema | from HasFormSchema | |
protected Closure|null | $modifyFormFieldUsing | from HasFormSchema | |
protected string|Closure|null | $indicateUsing | from HasIndicators | |
protected Htmlable|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 Closure|null | $modifyBaseQueryUsing | from InteractsWithTableQuery | |
protected Arrayable|string|Closure|null | $options | from HasOptions | |
protected Closure|null | $getOptionLabelUsing | from HasOptions | |
protected Closure|null | $getOptionLabelsUsing | from HasOptions | |
protected Closure|null | $getSearchResultsUsing | from HasOptions | |
protected string|Closure|null | $placeholder | from HasPlaceholder | |
protected Closure|null | $modifyRelationshipQueryUsing | from HasRelationship | |
protected bool|Closure | $isPreloaded | from HasRelationship | |
protected string|Closure|null | $relationship | from HasRelationship | |
protected string|Closure|null | $relationshipTitleAttribute | from HasRelationship | |
protected string|Closure|null | $attribute | from SelectFilter | |
protected bool|Closure | $isMultiple | from SelectFilter | |
protected bool|Closure | $isNative | from SelectFilter | |
protected bool|Closure | $isStatic | from SelectFilter | |
protected bool | $searchable | from SelectFilter | |
protected bool|Closure | $canSelectPlaceholder | from SelectFilter | |
protected int|Closure | $optionsLimit | from SelectFilter | |
protected bool|Closure|null | $isSearchForcedCaseInsensitive | from SelectFilter | |
protected Closure|null | $getOptionLabelFromRecordUsing | from SelectFilter | |
protected string|Closure|null | $trueLabel | ||
protected string|Closure|null | $falseLabel |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])
No description
protected mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)
No description
protected string|null
getTypedReflectionParameterClassName(ReflectionParameter $parameter)
No description
static void
macro(string $name, callable $macro)
No description
static void
mixin(object $mixin, bool $replace = true)
No description
static void
flushMacros()
No description
static mixed
__callStatic(string $method, array $parameters)
No description
mixed
__call(string $method, array $parameters)
No description
static protected callable|null
getMacro(string $method)
No description
BelongsToTable
table(Table $table)
No description
Table
getTable()
No description
HasTable
getLivewire()
No description
array
getState()
No description
CanBeHidden
hidden(bool|Closure $condition = true)
No description
CanBeHidden
hiddenOn(string|array $livewireComponents)
No description
CanBeHidden
visible(bool|Closure $condition = true)
No description
CanBeHidden
visibleOn(string|array $livewireComponents)
No description
bool
isHidden()
No description
bool
isVisible()
No description
CanResetState
resetState(array|Closure|null $state)
No description
array
getResetState()
No description
CanSpanColumns
columnSpan(array|int|string|Closure|null $span)
No description
CanSpanColumns
columnSpanFull()
No description
CanSpanColumns
columnStart(array|int|string|Closure|null $start)
No description
array|int|string|Closure|null
getColumnSpan()
No description
array|int|string|Closure|null
getColumnStart()
No description
HasColumns
columns(array|int|string|null $columns = 2)
No description
array|int|string|null
getColumns()
No description
HasDefaultState
default(mixed $state = true)
No description
mixed
getDefaultState()
No description
HasFormSchema
form(array|Closure|null $schema)
No description
HasFormSchema
modifyFormFieldUsing(Closure|null $callback)
No description
array
getFormSchema()
No description
bool
hasFormSchema()
No description
Field|null
getFormField()
No description
ComponentContainer
getForm()
No description
HasIndicators
indicator(Htmlable|Closure|null $indicator)
No description
HasIndicators
indicateUsing(Closure|null $callback)
No description
array
getIndicators()
No description
Htmlable
getIndicator()
No description
HasLabel
label(string|Closure|null $label)
No description
HasLabel
translateLabel(bool $shouldTranslateLabel = true)
No description
string
getLabel()
No description
string
getName()
No description
Builder
apply(Builder $query, array $data = [])
No description
Builder
applyToBaseQuery(Builder $query, array $data = [])
No description
InteractsWithTableQuery
query(Closure|null $callback)
No description
InteractsWithTableQuery
baseQuery(Closure|null $callback)
No description
InteractsWithTableQuery
modifyQueryUsing(Closure|null $callback)
No description
InteractsWithTableQuery
modifyBaseQueryUsing(Closure|null $callback)
No description
protected bool
hasQueryModificationCallback()
No description
protected bool
hasBaseQueryModificationCallback()
No description
final
__construct(string $name)
No description
static BaseFilter
make(string|null $name = null)
No description
static string|null
getDefaultName()
No description
int
getActiveCount()
No description
HasOptions
options(Arrayable|string|Closure|null $options)
No description
array
getOptions()
No description
HasOptions
getOptionLabelUsing(Closure|null $callback)
No description
HasOptions
getOptionLabelsUsing(Closure|null $callback)
No description
HasOptions
getSearchResultsUsing(Closure|null $callback)
No description
Closure|null
getOptionLabelUsingCallback()
No description
Closure|null
getOptionLabelsUsingCallback()
No description
Closure|null
getSearchResultsUsingCallback()
No description
HasPlaceholder
placeholder(string|Closure|null $placeholder)
No description
string|null
getPlaceholder()
No description
HasRelationship
relationship(string|Closure|null $name, string|Closure|null $titleAttribute, Closure|null $modifyQueryUsing = null)
No description
HasRelationship
preload(bool|Closure $condition = true)
No description
bool
isPreloaded()
No description
bool
queriesRelationships()
No description
Builder
getRelationship()
No description
string|null
getRelationshipName()
No description
string|null
getRelationshipTitleAttribute()
No description
Closure|null
getModifyRelationshipQueryUsing()
No description
Builder|null
getRelationshipQuery()
No description
string|null
getRelationshipKey(Builder|null $query = null)
No description
SelectFilter
attribute(string|Closure|null $name)
No description
SelectFilter
column(string|Closure|null $name)
deprecated
deprecated
No description
SelectFilter
static(bool|Closure $condition = true)
No description
SelectFilter
multiple(bool|Closure $condition = true)
No description
SelectFilter
searchable(bool|array|Closure $condition = true)
No description
SelectFilter
selectablePlaceholder(bool|Closure $condition = true)
No description
string
getAttribute()
No description
string
getColumn()
deprecated
deprecated
No description
SelectFilter
forceSearchCaseInsensitive(bool|Closure|null $condition = true)
No description
bool|null
isSearchForcedCaseInsensitive()
No description
bool
isMultiple()
No description
bool|array|Closure
getSearchable()
No description
bool
canSelectPlaceholder()
No description
SelectFilter
optionsLimit(int|Closure $limit)
No description
int
getOptionsLimit()
No description
SelectFilter
native(bool|Closure $condition = true)
No description
bool
isNative()
No description
SelectFilter
getOptionLabelFromRecordUsing(Closure|null $callback)
No description
TernaryFilter
trueLabel(string|Closure|null $trueLabel)
No description
TernaryFilter
falseLabel(string|Closure|null $falseLabel)
No description
string|null
getTrueLabel()
No description
string|null
getFalseLabel()
No description
TernaryFilter
nullable()
No description
TernaryFilter
boolean()
No description
TernaryFilter
queries(Closure $true, Closure $false, Closure|null $blank = null)
No description