Pagination
Description
Pagination provides classic and simple pagination controls, plus Enso-aware wrappers that inject translation automatically.
Installation
Install the package:
yarn add @enso-ui/pagination
The components can be used inside or outside the Enso ecosystem.
Features
- exports
Pagination,EnsoPagination,SimplePagination, andEnsoSimplePagination - supports full page-number navigation and lightweight previous/next navigation
- exposes slot payloads for record info customization
- injects
i18nautomatically in the Enso wrappers
Usage
<script setup>
import { Pagination } from '@enso-ui/pagination/bulma';
</script>
<Pagination
:length="length"
:page="page"
:page-size="pageSize"
@page-changed="page = $event" />
API
Bulma exports
Import: @enso-ui/pagination/bulma
Pagination
Props:
i18n: Function = value => valuelength: numberloading: boolean = falsepage: numberpageSize: number
Emits:
page-changed
Slots:
inforeceives{ from, page, pageSize, to, total, totalPages }
SimplePagination
Props:
i18n: Function = value => valuelength: number | null = nullloading: boolean = falsepage: numberpageSize: number
Emits:
page-changed
Slots:
inforeceives{ from, page, pageSize, to, total, totalPages }
Enso wrappers
EnsoPaginationwrapsPaginationand injectsi18nEnsoSimplePaginationwrapsSimplePaginationand injectsi18n
Depends On
vueas the component runtime.
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!