© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
ded7978

How i can change color of description

        return $table
            ->columns([
                Tables\Columns\ImageColumn::make('icon')->label('Иконка')
                    ->default(function () {
                        return asset('images/pusher-logo.jpeg');
                    }),
                Tables\Columns\TextColumn::make('title')->label('Text')
                    ->description(fn (Sending $record): string => $record->body),
                Tables\Columns\TextColumn::make('created_at')->dateTime()->label('Дата и Время'),
                Tables\Columns\TextColumn::make('sent_count')->label('Отправлено'),
                Tables\Columns\TextColumn::make('delivered_count')->label('Доставлено')
                    ->description(fn (Sending $record): string => $record->delivered_count === 0 ? 'N/A' : number_format(($record->delivered_count / $record->sent_count * 100), 2) . '%'),
                Tables\Columns\TextColumn::make('viewed_count')->label('Просмотрено')
                    ->description(fn (Sending $record): string => $record->delivered_count === 0 ? 'N/A' : number_format(($record->viewed_count / $record->delivered_count * 100), 2) . '%')->color('primary'),
            ])
        return $table
            ->columns([
                Tables\Columns\ImageColumn::make('icon')->label('Иконка')
                    ->default(function () {
                        return asset('images/pusher-logo.jpeg');
                    }),
                Tables\Columns\TextColumn::make('title')->label('Text')
                    ->description(fn (Sending $record): string => $record->body),
                Tables\Columns\TextColumn::make('created_at')->dateTime()->label('Дата и Время'),
                Tables\Columns\TextColumn::make('sent_count')->label('Отправлено'),
                Tables\Columns\TextColumn::make('delivered_count')->label('Доставлено')
                    ->description(fn (Sending $record): string => $record->delivered_count === 0 ? 'N/A' : number_format(($record->delivered_count / $record->sent_count * 100), 2) . '%'),
                Tables\Columns\TextColumn::make('viewed_count')->label('Просмотрено')
                    ->description(fn (Sending $record): string => $record->delivered_count === 0 ? 'N/A' : number_format(($record->viewed_count / $record->delivered_count * 100), 2) . '%')->color('primary'),
            ])


i changed color but its not changing color of description
main.png
image.png
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

How i can change color of text
FilamentFFilament / ❓┊help
3y ago
How can I globally change the 'view' action color?
FilamentFFilament / ❓┊help
6mo ago
How can I change the background color of the highlighted (today) day?
FilamentFFilament / ❓┊help
3y ago
How to change the color of buttons
FilamentFFilament / ❓┊help
2y ago