Label not displayed
Hi,
i've to add an AttachAction to my form but the label of the " $action->getRecordSelect()" isn't displyed
here's my code
Tables\Actions\AttachAction::make()
->form(function ($action) {
return [
$action->getRecordSelect()->label('Player'),
Forms\Components\Select::make('sport_id')
->label('Sport')
->options(fn () => Sport::pluck('name', 'id'))
->required()
];
})
any idea ?5 Replies
because you want to shot it in form
@krekas how can i work around this problem?
try
->disableLabel(false)
@Dan Harrin it works, thanks a lot,
is this in the documentation ?
not sure