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
I bet there is a
recordSelectLabel()
or similar.i don't find anything in the doc for recordSelectLabel