Skip to content

Commit 6650833

Browse files
committed
Added prop for disable limit selector
1 parent b6731bf commit 6650833

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: src/components/TinyPagination.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<li class="page-item" :class="classLastPage">
1111
<a class="btn-next-page" href="#" @click.prevent="nextPage">{{translation.next}}</a>
1212
</li>
13-
<li class="page-item">
13+
<li v-if="showLimit" class="page-item">
1414
<select class="tiny-form-select" v-model="currentLimit" @change="onLimitChange">
1515
<option
1616
v-for="(limit, index) in limits"
@@ -46,6 +46,10 @@ export default {
4646
default () {
4747
return [10, 15, 20, 50, 100]
4848
}
49+
},
50+
showLimit: {
51+
type: Boolean,
52+
default: true
4953
}
5054
},
5155
data () {

0 commit comments

Comments
 (0)