F
Filamentβ€’15mo 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
ericmpβ€’15mo 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β€’15mo ago
you need to pass a ->form() schema
ericmp
ericmpβ€’15mo ago
πŸ™ thanks