|
1 | 1 | <template>
|
2 | 2 | <v-container fluid class="pagination-pages mt-3">
|
3 | 3 | <v-row>
|
4 |
| - <v-col lg=6 cols=12> |
5 |
| - <v-card class="overflow-hidden mx-1"> |
| 4 | + <v-col lg=6 cols=12> |
| 5 | + <v-card class="overflow-hidden mx-1"> |
| 6 | + <v-card-title class="pa-5 pb-3"> |
| 7 | + <p>Pagination Example</p> |
| 8 | + <v-spacer></v-spacer> |
| 9 | + <v-menu> |
| 10 | + <template v-slot:activator="{ on, attrs }"> |
| 11 | + <v-btn |
| 12 | + icon |
| 13 | + v-bind="attrs" |
| 14 | + v-on="on" |
| 15 | + > |
| 16 | + <v-icon color="greyTint">mdi-dots-vertical</v-icon> |
| 17 | + </v-btn> |
| 18 | + </template> |
| 19 | + <v-list> |
| 20 | + <v-list-item |
| 21 | + v-for="(item, i) in menu" |
| 22 | + :key="i" |
| 23 | + @click="() => {}" |
| 24 | + > |
| 25 | + <v-list-item-title >{{ item }}</v-list-item-title> |
| 26 | + </v-list-item> |
| 27 | + </v-list> |
| 28 | + </v-menu> |
| 29 | + </v-card-title> |
| 30 | + <v-card-text class="pa-5 pt-0"> |
| 31 | + <p class="fs-normal greyBold--text mb-5">The <code>v-pagination</code> component is used to separate |
| 32 | + long sets of data so that it is easier for a user to consume information.</p> |
| 33 | + <div class="text-center"> |
| 34 | + <v-pagination |
| 35 | + class="pagination-example" |
| 36 | + v-model="page" |
| 37 | + :length="6" |
| 38 | + ></v-pagination> |
| 39 | + </div> |
| 40 | + </v-card-text> |
| 41 | + </v-card> |
| 42 | + </v-col> |
| 43 | + <v-col lg=6 cols=12> |
| 44 | + <v-card class="overflow-hidden mx-1"> |
6 | 45 | <v-card-title class="pa-5 pb-3">
|
7 |
| - <p>Pagination Example</p> |
| 46 | + <p>Pagination Length</p> |
8 | 47 | <v-spacer></v-spacer>
|
9 | 48 | <v-menu>
|
10 | 49 | <template v-slot:activator="{ on, attrs }">
|
11 |
| - <v-btn |
12 |
| - icon |
13 |
| - v-bind="attrs" |
14 |
| - v-on="on" |
15 |
| - > |
16 |
| - <v-icon color="greyTint">mdi-dots-vertical</v-icon> |
17 |
| - </v-btn> |
18 |
| - </template> |
19 |
| - <v-list> |
20 |
| - <v-list-item |
21 |
| - v-for="(item, i) in menu" |
22 |
| - :key="i" |
23 |
| - @click="() => {}" |
| 50 | + <v-btn |
| 51 | + icon |
| 52 | + v-bind="attrs" |
| 53 | + v-on="on" |
24 | 54 | >
|
25 |
| - <v-list-item-title >{{ item }}</v-list-item-title> |
| 55 | + <v-icon color="greyTint">mdi-dots-vertical</v-icon> |
| 56 | + </v-btn> |
| 57 | + </template> |
| 58 | + <v-list> |
| 59 | + <v-list-item |
| 60 | + v-for="(item, i) in menu" |
| 61 | + :key="i" |
| 62 | + @click="() => {}" |
| 63 | + > |
| 64 | + <v-list-item-title >{{ item }}</v-list-item-title> |
26 | 65 | </v-list-item>
|
27 |
| - </v-list> |
| 66 | + </v-list> |
28 | 67 | </v-menu>
|
29 | 68 | </v-card-title>
|
30 | 69 | <v-card-text class="pa-5 pt-0">
|
31 |
| - <p class="fs-normal greyBold--text mb-5">The <code>v-pagination</code> component is used to separate |
32 |
| - long sets of data so that it is easier for a user to consume information.</p> |
| 70 | + <p class="fs-normal greyBold--text mb-5">Using the <code>length</code> prop you can set the length of <code>v-pagination</code>, if the number of |
| 71 | + page buttons exceeds the parent container, it will truncate the list.</p> |
33 | 72 | <div class="text-center">
|
34 |
| - <v-pagination |
35 |
| - class="pagination-example" |
36 |
| - v-model="page" |
37 |
| - :length="6" |
38 |
| - ></v-pagination> |
| 73 | + <v-container> |
| 74 | + <v-row no-gutters justify="center"> |
| 75 | + <v-col cols="8"> |
| 76 | + <v-container class="max-width"> |
| 77 | + <v-pagination |
| 78 | + class="pagination-length" |
| 79 | + v-model="pageLong" |
| 80 | + :length="15" |
| 81 | + color="secondary" |
| 82 | + ></v-pagination> |
| 83 | + </v-container> |
| 84 | + </v-col> |
| 85 | + </v-row> |
| 86 | + </v-container> |
39 | 87 | </div>
|
40 | 88 | </v-card-text>
|
41 | 89 | </v-card>
|
42 |
| - </v-col> |
43 |
| - <v-col lg=6 cols=12> |
44 |
| - <v-card class="overflow-hidden mx-1"> |
45 |
| - <v-card-title class="pa-5 pb-3"> |
46 |
| - <p>Pagination Length</p> |
47 |
| - <v-spacer></v-spacer> |
48 |
| - <v-menu> |
49 |
| - <template v-slot:activator="{ on, attrs }"> |
50 |
| - <v-btn |
51 |
| - icon |
52 |
| - v-bind="attrs" |
53 |
| - v-on="on" |
54 |
| - > |
55 |
| - <v-icon color="greyTint">mdi-dots-vertical</v-icon> |
56 |
| - </v-btn> |
57 |
| - </template> |
58 |
| - <v-list> |
59 |
| - <v-list-item |
60 |
| - v-for="(item, i) in menu" |
61 |
| - :key="i" |
62 |
| - @click="() => {}" |
63 |
| - > |
64 |
| - <v-list-item-title >{{ item }}</v-list-item-title> |
65 |
| - </v-list-item> |
66 |
| - </v-list> |
67 |
| - </v-menu> |
68 |
| - </v-card-title> |
69 |
| - <v-card-text class="pa-5 pt-0"> |
70 |
| - <p class="fs-normal greyBold--text mb-5">Using the <code>length</code> prop you can set the length of <code>v-pagination</code>, if the number of |
71 |
| - page buttons exceeds the parent container, it will truncate the list.</p> |
72 |
| - <div class="text-center"> |
73 |
| - <v-container> |
74 |
| - <v-row no-gutters justify="center"> |
75 |
| - <v-col cols="8"> |
76 |
| - <v-container class="max-width"> |
77 |
| - <v-pagination |
78 |
| - class="pagination-length" |
79 |
| - v-model="pageLong" |
80 |
| - :length="15" |
81 |
| - color="secondary" |
82 |
| - ></v-pagination> |
83 |
| - </v-container> |
84 |
| - </v-col> |
85 |
| - </v-row> |
86 |
| - </v-container> |
87 |
| - </div> |
88 |
| - </v-card-text> |
89 |
| - </v-card> |
90 |
| - </v-col> |
91 |
| - </v-row> |
| 90 | + </v-col> |
| 91 | + </v-row> |
92 | 92 | <v-row>
|
93 | 93 | <v-col lg=6 cols=12>
|
94 | 94 | <v-card class="overflow-hidden mx-1 mb-1">
|
|
160 | 160 | <p class="fs-normal greyBold--text mb-5">Pagination items can be manually deactivated using the <code>disabled</code> prop.</p>
|
161 | 161 | <div class="text-center">
|
162 | 162 | <v-pagination
|
163 |
| - length="3" |
| 163 | + :length="3" |
164 | 164 | disabled
|
165 | 165 | class="pagination-disabled"
|
166 | 166 | ></v-pagination>
|
|
0 commit comments