{hero}

language.aria.paginate.number

Since: DataTables 2.1

WAI-ARIA label for the number pagination buttons.

Description

This option can be used to set a WAI-ARIA label for the number buttons in the DataTables pagination control that represent a page number (i.e. the button simply shows a number). This can be useful to add context to what clicking on the button in the paging control will do.

The number that the table's page will jump to when the button is triggered is appended to the end of the string given here.

If the value is empty (as is the default case), no aria-label attribute will be added to the numbered paging buttons.

Type

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

Default

This option is an empty string by default, resulting in no aria-label being added to the numbered paging buttons.

Example

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

new DataTable('#myTable', {
	language: {
		aria: {
			paginate: {
				number: 'Jump to page: '
			}
		}
	}
});

Related

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