how to disable the select option in column?
Code:
SelectColumn::make('product')
->options([
'rfid_card' => 'RFID Card',
'eco_card' => 'Eco Card',
'bio_card' => 'Bio Card'
]) ->selectablePlaceholder(false) ->sortable(),
I use ->selectablePlaceholder(false), but it doesn't work
4 Replies
1. To disable the whole select use ->disabled(bool | Closure $condition = true)
2. To disable the options use ->disableOptionWhen(bool | Closure $callback)
Are you looking for
->nullable(false)
?no
its work
thank u Parthiban
❤️