BeaconCMS / BeaconCMS/beacon_live_admin
Components: Sorting and Pagination
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
## Rules
- Sort by name, category
- Paginate by page, 20 records by page
- Use query params to preserve state as `?query=FOO&page=INT&sort=NAME`
- Searching should reset pagination to page 1 and preserve sort query param and current state
- Paginating should preserve search query and sort params and their current state
- Display a navigation bar like this one below:

## Related code
https://github.com/BeaconCMS/beacon_live_admin/blob/f774eaae7f31ce88b81db1d6c61788bef7d29acf/lib/beacon/live_admin/content.ex#L145
https://github.com/BeaconCMS/beacon/blob/cbe3bf7445cc559c96310593105e710366ed2cea/lib/beacon/content.ex#L1597
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.