© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Crylar

Is it possible to hide Badge based on the value?

I have the following code and would love to hide for that row when "children_count" is 0. What are my options? Thanks.

return $table
            ->columns([
                Tables\Columns\TextColumn::make('title'),
                Tables\Columns\BadgeColumn::make('children_count')
                    ->label('')
                    ->icon('heroicon-o-tag')
                    ->counts('children')

            ])
return $table
            ->columns([
                Tables\Columns\TextColumn::make('title'),
                Tables\Columns\BadgeColumn::make('children_count')
                    ->label('')
                    ->icon('heroicon-o-tag')
                    ->counts('children')

            ])
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

Is it possible to hide repeater items based on current item value?
FilamentFFilament / ❓┊help
13mo ago
Is it possible that based on the value of the component other component is not visible
FilamentFFilament / ❓┊help
2y ago
Set text on the badge according to the value
FilamentFFilament / ❓┊help
3y ago
Is it possible to hide a header part on the FileUpload preview?
FilamentFFilament / ❓┊help
3y ago