F
Filament15mo ago
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'), ]) i changed color but its not changing color of description
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server