nova-sortable
nova-sortable copied to clipboard
Move items across pages
Is there a way to move an item to the next/previous page? As I see it, currently no.
Of cause Drag'n'drop is hard to manage across pages. But maybe add an extra button at the first and list item? Or use the existing arrow buttons only to move to the next page instead of the end?
I'll give it some thought, maybe an UI/UX designer could pitch in. :D
I am also thinking about how to handle pagination as I am using in the parent HasMany::make
but within the relationships parent it list it with sorting but has pagination in it so cannot sort proper.
Currently I get past this by changing the pagination settings in the nova config file to load-more
, enabling me to load them all and then sort.
Wondering if theres a setting that can be used to remove pagination to a relationship listings etc.
This isn't a great solution, but one I've found is to simply set the number of models loaded for the relationship to something impractically large. So on your Nova Resource, add:
public static $perPageViaRelationship = 50;
You could push that even further, but of course that's risking making the page hard to use.