jairovg / vuesax-admin-dashboard

2 stars 2 forks source link

Pagination component #11

Open jairovg opened 3 years ago

jairovg commented 3 years ago

What problem does this feature solve?

A clear and concise description of what the problem is.

Describe the solution you'd like

What does the proposed API look like?

<!--
const items = [
  {
    page: 1,
    href: '?p=1',
  },
  {
    page: 2,
    href: '?p=2',
  },
  {
    page: 3,
    href: '?p=3',
  },
];
const currentPage = 2;
const totalPages=3;
-->
<pagination
  current-page="currentPage"
  items="items"
  total-pages="totalPages"
  onChange="changeHandler"
/>

Additional context

The visual requirements may be found in the UpLabs page.

jairovg commented 3 years ago

It's better to handle an anchor with aria-disabled state in the current page instead return just the page number.