F
Filamentβ€’2y ago
ericmp

Should I be able to use ViewActionwithout admin panel?

Should I be able to use \Filament\Tables\Actions\ViewAction::make() without admin panel? I'm using a table builder
3 Replies
ericmp
ericmpOPβ€’2y ago
I tried to use it but im pretty sure im missing something
protected function getTableActions(): array
{
return [
\Filament\Tables\Actions\ViewAction::make()
->label('')
// ->mountUsing(function (\Filament\Forms\ComponentContainer $form, Game $record) {
// $form->fill($record->toArray());
// })
,
];
}
protected function getTableActions(): array
{
return [
\Filament\Tables\Actions\ViewAction::make()
->label('')
// ->mountUsing(function (\Filament\Forms\ComponentContainer $form, Game $record) {
// $form->fill($record->toArray());
// })
,
];
}
Dan Harrin
Dan Harrinβ€’2y ago
you need to pass a ->form() schema
ericmp
ericmpOPβ€’2y ago
πŸ™ thanks
Want results from more Discord servers?
Add your server