trait CanDisableOptions (View source)

Properties

protected array $isOptionDisabled

Methods

disableOptionWhen(bool|Closure|null $callback, bool $merge = false)

No description

array
getEnabledOptions()

No description

bool
isOptionDisabled(array-key $value, string $label)

No description

bool
hasDynamicDisabledOptions()

No description

Details

CanDisableOptions disableOptionWhen(bool|Closure|null $callback, bool $merge = false)

No description

Parameters

bool|Closure|null $callback
bool $merge

Return Value

CanDisableOptions

array getEnabledOptions()

No description

Return Value

array

bool isOptionDisabled(array-key $value, string $label)

No description

Parameters

array-key $value
string $label

Return Value

bool

bool hasDynamicDisabledOptions()

No description

Return Value

bool