Skip to content

Update PerPage component to allow for custom options #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2025

Conversation

athphane
Copy link
Member

This removes hard coded amounts array and moves it into the Component class. The property can be updated as needed.

Current usages still works. This will give options 10, 20, 50, 100 and 500.

<x-forms::per-page />

Can use your own amounts. This will give options 11, 22 and 33.

<x-forms::per-page :amounts="[11 => 11, 22 => 22, 33 => 33]" />

Tests are written to ensure functionality.

@dash8x dash8x merged commit 44eb52a into main Mar 2, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants