Disable option Checkbox List more than 1 items
In the example above, we can disable the
livewire
options
My question is, how to disable livewire
and laravel
in options?Solution:Jump to solution
Solved!
Just added with
$set('technologies', ['special-option']);
```php
->disableOptionWhen(function (string $value, $state): bool {
$tempData = $state ?? [];...4 Replies
...'livewire' || $value === 'laravel'
Thank you for your answer,
this is my CheckboxList
The next condition is, I want that when
special-option
is selected, the other options will automatically be unchecked
, because if we disable them when any option is already checked, it will result in the following situation:Solution
Solved!
Just added with
$set('technologies', ['special-option']);