avo
avo copied to clipboard
Add an option to hide the pagination information for few records
Feature
What I would do is to set a hide_pagination_when_one_page_present
(I'm open to a better name) option on the has_many
field and pick thst up in the pagination component. If that's turned on in the pagination component, hide the information You don't need.
I believe you can get that option from the @field
instance variable in the ResourceIndexComponent
. You can check in the pagination component before and see if it's available there as well.
The @field
variable will have that option hide_pagination_when_one_page_present
.
From here: https://discord.com/channels/740892036978442260/740893011994738751/992484340057509989
Is it possible to hide pagination for associations on a Resources#show page? I have a has_many association on a model, but it is usually only 1-2 associations. I don't need it to show the "8 per page" or "Displaying 2 items".
