I am currently working on a Vue project which you can view on codesandbox and utilizing bootstrap-vue.
Within the project, there are multiple columns containing cards along with pagination:
<template>
<b-container>
<b-row
:current-page="currentPage"
:per-page="perPage">
<b-col cols="12" sm="4" class="my-1"
v-for="item in items"
:key="item.id">
<b-card
:bg-variant="item.variant"
text-variant="white"
header="item.title"
class="text-center"
>
<p class="card-text">
{{item.body}}
</p>
</b-card>
</b-col>
</b-row>
<b-row>
<b-col md="6" class="my-1">
<b-pagination :total-rows="totalRows" :per-page="perPage" v-model="currentPage" class="my-0" />
</b-col>
</b-row>
</b-container>
</template>
I am currently looking for guidance on how to set the perPage
property in bootstrap-vue for custom columns or rows similar to bootstraps table pagination functionality.
The desired outcome is to display 2 columns with cards per page using perPage: 2
.
Question: Can anyone provide assistance on setting the bootstrap-vue perPage
for custom columns or rows?