Skip to content
Snippets Groups Projects
Commit 3577b8e6 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

feat(ATable): pass trough maxVisiblePages to pagination

parent 6a663ac7
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@
v-if="page"
v-model="page"
:items-per-page="itemsPerPage ?? paginationData.itemsPerPage"
:max-visible-pages="maxVisiblePages ?? 5"
:count="paginationData.count"
/>
</template>
......@@ -73,6 +74,7 @@ const itemsPerPage = defineModel<number>('itemsPerPage', { required: false })
defineProps<{
items?: T[]
paginationData?: Omit<PaginatedListResult<T>, 'items'>
maxVisiblePages?: number
}>()
const { t } = useI18n()
const tableWrapperEl = ref()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment