Table Select update action

Hi I have a table and one of the columns is a select() with ServiceOrder status. SelectColumn::make('service_order_status_id') ->selectablePlaceholder(false) ->options(\App\Models\ServiceOrderStatus::pluck('name', 'id')) ->default(fn ($record) => $record->name) ->label('Stav') // ->disableOption([4, 5, 6]) ->disableOptionWhen(function ($value, $record) { return in_array($record->service_order_status_id, [5, 6, 7]) || $value === 7; }) I would like to add confirmation modal to this, but method like "requiresConfirmation()" is available. Any clue? Thanks!
1 Reply
Patrick Boivin
Patrick Boivin10mo ago
Another approach is to use a column action instead. Use a regular TextColumn with an action, open a modal from the column action, show the Select field in the modal and the Save button will be your confirmation.