Skip to content

Commit

Permalink
docs: update sortable param (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalviandyr authored Feb 28, 2024
1 parent 5f22f09 commit 409b816
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/docs/v5/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ class UserTable extends TableView
return [
Text::make('nama', 'Nama')->sortable(),
Text::make('email', 'Email')->sortable(),
Raw::make(
fn ($data) => DateHelper::formatDate($data->birth_date),
'Tanggal Lahir'
)->sortable('birth_date'),
];
}
}
Expand Down

0 comments on commit 409b816

Please sign in to comment.