language.aria.paginate
WAI-ARIA labels for pagination buttons.
Description
This object contains the properties that can be used for the ARIA label attributes that are applied to the pagination controls in DataTables. This can be useful when you use the language.paginate
options to alter the default pagination button text to show icons rather than text, as the ARIA label attributes ensure that accessibility will still be retained.
Please note that as the DataTables language.paginate
options contain plain text, there is no need for ARIA label attributes, thus this object does not contain any default strings.
Type
This option can be given in the following type(s):
Example
Define full paging language options as icons with ARIA label text:
new DataTable('#myTable', {
pagingType: 'full',
language: {
paginate: {
first: '«',
previous: '‹',
next: '›',
last: '»'
},
aria: {
paginate: {
first: 'First',
previous: 'Previous',
next: 'Next',
last: 'Last'
}
}
}
});
Related
The following options are directly related and may also be useful in your application development.