Skip to content

Commit

Permalink
allow sorting by created / updated at
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Jun 15, 2024
1 parent 6169df9 commit 9d75b02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Resources/TranslationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ public static function table(Table $table): Table
->label(trans('filament-translations::translation.text'))
->view('filament-translations::text-column')
->searchable(),
Tables\Columns\TextColumn::make('created_at')
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
Tables\Columns\TextColumn::make('updated_at')
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
])
->filters([
Tables\Filters\SelectFilter::make('group')
Expand Down

0 comments on commit 9d75b02

Please sign in to comment.