{hero}

language.aria.paginate.previous

Since: DataTables 1.10.10

WAI-ARIA label for the previous pagination button.

Description

Set the ARIA label attribute for the previous pagination button. This can be particularly useful for cases where you wish to show an icon such as « or in the button itself, while retaining full accessibility.

Type

This option can be given in the following type(s):

Default

There is no default value for this option as the language.paginate.previous option contains a string by default.

Example

Use icons for the previous and next buttons with ARIA label text:

new DataTable('#myTable', {
	language: {
		paginate: {
			previous: '‹',
			next: '›'
		},
		aria: {
			paginate: {
				previous: 'Previous',
				next: 'Next'
			}
		}
	}
});

Related

The following options are directly related and may also be useful in your application development.