Closed sebastiandedeyne closed 6 years ago
notes to self:
-To start developing, run yarn
and yarn dev
in both the root and in the /docs folder
-data-paginator should have a default scoped slot that, by default, returns the code in the 2nd last code block of Seb's comment, but allows the user to implement their own styling
laravel implementation: /Users/adriaanmarain/sites/smartassist/vendor/laravel/framework/src/Illuminate/Pagination/UrlWindow.php
use https://gist.github.com/kottenator/9d936eb3e4e3c3e02598#gistcomment-1748957 ?
paginator
slot scope proppageCount
slot scope prop instead (Math.ceil(totalCount / pageSize
)https://github.com/spatie/vue-data-component/blob/eefd8371192bfa5a685d0ad5b5d91f5b513916cc/src/components/DataComponent.js#L184
data-paginator
renderless component.pages
slot scope prop contains an object like the oldpaginator
:links-on-each-side
prop todata-paginator
to reduce the number of pages in thepages
slot scope prop (idea stolen from https://laravel-news.com/laravel-5-7-pagination-link-customizations)The last example is going to be a bit harder to implement. Some example (edge) cases: