{hero}

language.select.aria.headerCheckbox

Since: Select 2.0.0

Text to use as the aria-label for the header checkbox.
Please note - this property requires the Select extension for DataTables.

Description

This option is used to set the string value to assign to the aria-label for the "select all" checkbox in the table header (see select.headerCheckbox).

The aria-label attribute is used by assistive technology (e.g. screen readers) to provide extra information for an element and to describe what it does to the end user. It is not displayed or otherwise used if assistive technology is not used.

Type

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

Default

  • Value: Select all rows

Example

Set the aria label for the header checkbox and also for the row checkboxes uses the renderer.:

new DataTable('#example', {
	columnDefs: [
		{
			orderable: false,
			render: DataTable.render.select(),
			targets: 0
		}
	],
	language: {
		select: {
			aria: {
				headerCheckbox: 'Sélectionner toutes les lignes',
				rowCheckbox: 'Sélectionner une ligne'
			}
		}
	},
	select: {
		style: 'os',
		selector: 'td:first-child'
	},
	order: [[1, 'asc']]
});

Related

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