{hero}

language.aria.paginate

Since: DataTables 1.10.10

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.

Prior to DataTables 2, the pagination buttons contained plain text descriptions and thus the parameters in this object contained no values. With DataTables 2's change to use a UTF-8 icon to represent the first, last, previous and next buttons, the defaults for the parameters in this object were updated to include descriptive text.

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.