F
Filament14mo ago
ccc1516

AttachAction: change the label in the select

Hi, there is a way to edit the label of the option in the attacaction's select? I try like that: Tables\Actions\AttachAction::make() ->recordSelect( fn (Select $select) => $select ->placeholder('Seleziona un team') ->getOptionLabelFromRecordUsing(fn (Model $record) => "Example") ) ->preloadRecordSelect(),
2 Replies
Dennis Koch
Dennis Koch14mo ago
I bet there is a recordSelectLabel() or similar.
ccc1516
ccc1516OP14mo ago
i don't find anything in the doc for recordSelectLabel
Want results from more Discord servers?
Add your server