Skip to content

Commit

Permalink
v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gbalduzzi committed May 10, 2024
1 parent dd51789 commit 2bb7374
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to `wire-table` will be documented in this file

## 1.5.0 - 2024-05-10
- feat: support for pagination links on top of the table

## 1.4.0 - 2024-05-08
- feat: Update support to Laravel 11
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tiknil",
"wire-table"
],
"version": "1.4.0",
"version": "1.5.0",
"homepage": "https://github.com/tiknil/wire-table",
"license": "MIT",
"type": "library",
Expand Down
12 changes: 12 additions & 0 deletions docs/Pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ public int $pageSize = 20;
```

In case you need to reset the current page (e.g. when a filter changes), you can do so with the `resetPage()` method.


### Placement

By default, pagination links and the record count are shown at the bottom, after the table.
You can control where to show them by overriding these variables in your component:

```
protected bool $topPagination = false;
protected bool $bottomPagination = true;
```

0 comments on commit 2bb7374

Please sign in to comment.