© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Davide Cariola

EditAction and ViewAction doesn't work on livewire-table

Hi everyone! I used a livewire-table to show different roles.

I'm having issues with the EditAction and ViewAction: when I click on edit, the loader starts and, when finished, I get a "saved" notification. When I click on view, nothing happens.

The wierd thing is that the DeleteAction works as intended.

This is my code:
class RoleManager extends Component implements HasForms, HasTable, HasActions
{
   ...

    public static function table(Table $table): Table
    {
        return $table
            ->query(Role::query())
            ->columns([
                TextColumn::make('id')
                    ->sortable(),
                TextInputColumn::make('name')
                    ->label('Nome del ruolo')
                    ->searchable(),
                TextColumn::make('description')
                    ->label('Descrizione')
                    ->searchable()
                    ->toggleable(),
            ])
            ->reorderable('order')
            ->reorderRecordsTriggerAction(
                fn (Action $action, bool $isReordering) => $action
                    ->button()
                    ->label($isReordering ? 'Conferma' : 'Riordina'),
            )
            ->defaultSort('order')
            ->striped()
            ->filters([
                //
            ])
            ->actions([
                EditAction::make()
                    ->label('Modifica'),
                DeleteAction::make()
                    ->label('Cancella'),
                ViewAction::make(),

            ])
            ->bulkActions([
                BulkActionGroup::make([
                    DeleteBulkAction::make(),
                ]),
            ])
            ->headerActions([
                //
            ]);
    }
...
}
class RoleManager extends Component implements HasForms, HasTable, HasActions
{
   ...

    public static function table(Table $table): Table
    {
        return $table
            ->query(Role::query())
            ->columns([
                TextColumn::make('id')
                    ->sortable(),
                TextInputColumn::make('name')
                    ->label('Nome del ruolo')
                    ->searchable(),
                TextColumn::make('description')
                    ->label('Descrizione')
                    ->searchable()
                    ->toggleable(),
            ])
            ->reorderable('order')
            ->reorderRecordsTriggerAction(
                fn (Action $action, bool $isReordering) => $action
                    ->button()
                    ->label($isReordering ? 'Conferma' : 'Riordina'),
            )
            ->defaultSort('order')
            ->striped()
            ->filters([
                //
            ])
            ->actions([
                EditAction::make()
                    ->label('Modifica'),
                DeleteAction::make()
                    ->label('Cancella'),
                ViewAction::make(),

            ])
            ->bulkActions([
                BulkActionGroup::make([
                    DeleteBulkAction::make(),
                ]),
            ])
            ->headerActions([
                //
            ]);
    }
...
}


I also tried to use the
getPages
getPages
method from the resource. Thank you so much for the help.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

ViewAction doesn't work
FilamentFFilament / ❓┊help
3y ago
Spurious errors on ViewAction/EditAction upon saving.
FilamentFFilament / ❓┊help
17mo ago
EMERGENCY - before, using, and mutateRecordDataUsing doesn't work for EditAction
FilamentFFilament / ❓┊help
6mo ago
Automatic Filament ViewAction on Livewire component
FilamentFFilament / ❓┊help
17mo ago