matfish2 / vue-tables-2

Vue.js 2 grid components
https://matanya.gitbook.io/vue-tables-2/
GNU General Public License v3.0
1.53k stars 305 forks source link

Possible to have a pagination on top and bottom of table? #368

Closed phansch closed 6 years ago

phansch commented 6 years ago

Hi, first of all, thank you for working on this library! It has been a pretty straightforward experience integrating it into a bigger project and I hope to replace a much older library with this one. My goal is to have the the Vue tables look as close to the old tables as possible, so users don't notice big differences.

I'm currently stuck making a top and bottom pagination work. It seems only one can be used at the same time as the second pagination does not show up. Is this something that's currently not supported? The custom template in the Gist works apart from the two paginations.

matfish2 commented 6 years ago

When you say top pagination do you mean dropdown pagination? If so, currently "normal" and dropdown pagination are mutually exclusive.

phansch commented 6 years ago

I mean having the normal navigation on the top of the table and at the bottom of the table. This would be really useful for longer tables. I made a mockup from the example in the readme: selection_0034

(Note that I didn't update the gist with the latest template.js changes, it's still on 1.1.0)

matfish2 commented 6 years ago

You can update to the latest version and use a custom template based on the default template.

phansch commented 6 years ago

Nice, thank you! I probably won't have time to do that for the next 2 weeks. I will re-open the issue if it still doesn't work then 👍