© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Hurruwa

Custom Infolist Entry Action

Im trying to add an Action to a custom Infolist Entry Component but im hitting a wall with this error...

This is the code inside the Infolist Component reffering to the action:
use Filament\Infolists\Components\Actions\Action;

public function getItemAction($record): Action
    {
        return Action::make('viewActivity')
            ->iconButton()
            ->icon('heroicon-o-eye')
            ->modalHeading('View Action')
            ->modalDescription('View the activity details.')
            ->slideOver()
            ->modalWidth('xl')
            ->modalContent(fn() => view('filament.pages.view-activity', ['activity' => $record]));
    }
use Filament\Infolists\Components\Actions\Action;

public function getItemAction($record): Action
    {
        return Action::make('viewActivity')
            ->iconButton()
            ->icon('heroicon-o-eye')
            ->modalHeading('View Action')
            ->modalDescription('View the activity details.')
            ->slideOver()
            ->modalWidth('xl')
            ->modalContent(fn() => view('filament.pages.view-activity', ['activity' => $record]));
    }


Thanks in advance, any info to at least understand what's happening its welcome XD
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Infolist Custom Entry
FilamentFFilament / ❓┊help
3y ago
Custom Infolist Entry CSS
FilamentFFilament / ❓┊help
3y ago
Infolist RepeatableEntry view entry action.
FilamentFFilament / ❓┊help
9mo ago
Infolist FileUpload entry
FilamentFFilament / ❓┊help
13mo ago