Skip to content

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.

3 participants