Add pageless component variation for gl-pagination
A pageless variation of the gl-pagination
component is currently required for cursor pagination.
For this type of pagination, we only require two props:
page[before]
page[after]
Since results in GitLab normally come back in a block of 20, we don't require the page[size]
This component should look similar to the compact version of our pagination component.
From gitlab!21136 (comment 258386211), here's how we'd like to do the implementation:
- Accept
String
types for theprev-page
andnext-page
properties: this would let us pass cursor values directly - The compact mode should not require a
value
- When
prev-page
andnext-page
are specified, the corresponding buttons should simply emit their values instead of emitting an internally computed value based on the current page
Edited by Laura Montemayor