11
11
<b-pagination size =" md" :total-rows =" 100" v-model =" currentPage" :per-page =" 10" >
12
12
</b-pagination >
13
13
14
- <br >
15
- <br >
14
+ <br ><br >
16
15
17
16
<h6 >Small</h6 >
18
17
<b-pagination size =" sm" :total-rows =" 100" v-model =" currentPage" :per-page =" 10" >
19
18
</b-pagination >
20
19
21
- <br >
22
- <br >
20
+ <br ><br >
23
21
24
22
<h6 >Large</h6 >
25
23
<b-pagination size =" lg" :total-rows =" 100" v-model =" currentPage" :per-page =" 10" >
@@ -46,11 +44,11 @@ The value should be bound via `v-model` in your app. Page numbers are indexed fr
46
44
of pages is computed from the provided prop values for ` total-rows ` and ` per-page ` .
47
45
48
46
### Customizing
49
- ` <b-pagination> ` supports selveral props that allow you to customize the apperance.
47
+ ` <b-pagination> ` supports several props that allow you to customize the apperance.
50
48
51
49
| Prop | Description
52
50
| ---- | -----------
53
- | ` limit ` | Limit the maximum numbr of page buttons (including ellipsis if present, but not the first/prev/next/last buttons)
51
+ | ` limit ` | Limit the maximum numbr of displayed page buttons (including ellipsis if present, and excluding first/prev/next/last buttons)
54
52
| ` total-rows ` | The total number of records in your data
55
53
| ` per-page ` | The maximum number of data records per page
56
54
| ` first-text ` | The "goto first page" button text (html supported)
@@ -77,12 +75,17 @@ along with the goto _first_, _prev_, _next_, and _last_ buttons.
77
75
78
76
### Accessibility
79
77
The ` <b-pagination> ` component provides many features to support assistive technology users,
80
- including ` aria-label ` , ` aria-posinset ` and ` aria-setsize ` . The features are
78
+ including ` aria-label ` , ` aria-posinset ` and ` aria-setsize ` . The attributes are
81
79
automatically aplied, and can be cusomized.
82
80
83
- #### Accessibility:
81
+ Whan pagination is controling anohter component on the page (such as ` <b-table> ` ), add
82
+ the ` aria-controls="<element-id>" ` attribute to ` <b-pagination> ` and set its value
83
+ to the ` id ` of the element it is controling. This will help non-sighted users know
84
+ what component is being updated/controlled.
85
+
86
+ #### ARIA labels:
84
87
` <b-pagination> ` provides various ` *-label-* ` props which are used to set the ` aria-label `
85
- attributes on the various elements within the component, to help users of
88
+ attributes on the various elements within the component, which will help users of
86
89
assistive technology.
87
90
88
91
| Prop | ` aria-label ` content default
@@ -91,8 +94,8 @@ assistive technology.
91
94
| ` label-prev-page ` | "Goto previous page"
92
95
| ` label-next-page ` | "Goto next page"
93
96
| ` label-last-page ` | "Goto last page"
94
- | ` label-page ` | "Goto page" apprended with the page number
95
- | ` aria-label ` | "Pagination". applied to the outer pagination container
97
+ | ` label-page ` | "Goto page", appended with the page number
98
+ | ` aria-label ` | "Pagination", applied to the outer pagination container
96
99
97
100
#### Keyboard navigtion support:
98
101
` <b-pagination> ` supports keyborad navigation out of the box.
0 commit comments