© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
4 replies
keiron

Don't show View button on table row

I have the following code, which opens a modal when I click on the row. It also adds the View button on the row, which I don't want as it takes up space and is unnecessary. Is there any way to tell the system not to show the View button?

public function table(Table $table): Table
    {
        return $table
            ->columns([
                TextColumn::make('subject')
                    ->wrap()
                    ->searchable(),
            ])
            ->recordActions([
                ViewAction::make()
                    ->schema([
                        TextEntry::make('body')
                            ->state(fn ($record) => nl2br(e($record->body)))
                            ->html(),
                    ]),
            ]);
    }
public function table(Table $table): Table
    {
        return $table
            ->columns([
                TextColumn::make('subject')
                    ->wrap()
                    ->searchable(),
            ])
            ->recordActions([
                ViewAction::make()
                    ->schema([
                        TextEntry::make('body')
                            ->state(fn ($record) => nl2br(e($record->body)))
                            ->html(),
                    ]),
            ]);
    }
Solution
            ->recordActions([
                ViewAction::make()
                    ->hiddenLabel()
                    ->icon(null)
                    ->schema([
                        TextEntry::make('body')
                            ->state(fn ($record) => nl2br(e($record->body)))
                            ->html(),
                    ]),
            ])
            ->recordActions([
                ViewAction::make()
                    ->hiddenLabel()
                    ->icon(null)
                    ->schema([
                        TextEntry::make('body')
                            ->state(fn ($record) => nl2br(e($record->body)))
                            ->html(),
                    ]),
            ])
Jump to solution
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

Tailwind classes don't show in view
FilamentFFilament / ❓┊help
2y ago
Show image on table action view modal?
FilamentFFilament / ❓┊help
3y ago
Table click on row to view instead of edit
FilamentFFilament / ❓┊help
3y ago
Count when click on table row to view model
FilamentFFilament / ❓┊help
3y ago