lokyoung / vuejs-paginate

A Vue.js(v2.x+) component for creating pagination.
MIT License
779 stars 171 forks source link

Clicking the '...' links should bring you to the next set of pages #49

Open hidanielle opened 7 years ago

hidanielle commented 7 years ago

Currently these links are considered disabled, but typically buttons like this will display the next set of page numbers.

keeganstreet commented 6 years ago

Or alternatively, they could be converted to plain text instead of an anchor. It doesn't make sense to have an interactive element () for something that has no interactivity associated with it.

aphofstede commented 6 years ago

Could I get your opinions on what's the expected behaviour then? Say you have margin-pages=3: [1] 2 3 ... 48 49 50

1.) My initial instinct was that ... would open page 25 and the new view would be: 1 2 3 ... 24 [25] 26 ... 48 49 50 (So clicking ... would now halve the range in either direction)

2.) But you seem to imply that you'd expect page 5 to open (add three more), so then it would look like: 1 2 3 4 [5] 6 ... 48 49 50 (So you basically skip 4 and then 3 pages at a time)

1 seems more practical to me for large sets of data.

keeganstreet commented 6 years ago

My expectation around behaviour is that the ... is not interactive. It is an information element to indicate that a range of page links are not displayed.