© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•9mo ago•
21 replies
agampradhana

custom modal content

I make a filament page and implement HasTable,
i want to make action view with modal and use custom modal content, but the modal not show up and no error,
public function table(Table $table): Table
    {
        return $table
            ->actions([
                ActionsAction::make('view')
    ->modalContent(view('filament.pages.actions.detail-profit-and-loss'))
            ])
}
public function table(Table $table): Table
    {
        return $table
            ->actions([
                ActionsAction::make('view')
    ->modalContent(view('filament.pages.actions.detail-profit-and-loss'))
            ])
}


but if use

protected function getHeaderActions(): array
    {
        return [
            Action::make('view')
                ->modalContent(
                    fn(): View => view('filament.pages.actions.detail-profit-and-loss', [
                        'record' => '',
                    ])
                )
        ];
    }
protected function getHeaderActions(): array
    {
        return [
            Action::make('view')
                ->modalContent(
                    fn(): View => view('filament.pages.actions.detail-profit-and-loss', [
                        'record' => '',
                    ])
                )
        ];
    }

its work, but that not what i want, i want to add action on the table
ProfitAndLossReport.php4.72KB
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

Wizard modal with custom modal content
FilamentFFilament / ❓┊help
3y ago
modal, open another modal or change the content in custom modal content
FilamentFFilament / ❓┊help
3y ago
Action in custom modal content: Update modal content after action performed?
FilamentFFilament / ❓┊help
2y ago
How to Use Custom Modal Content
FilamentFFilament / ❓┊help
3y ago