{hero}

language.select.aria.rowCheckbox

Since: Select 2.0.0

Text to use as the aria-label for the row selection checkboxs.
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 checkbox used in row selection with the DataTable.render.select() helper function.

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 row

Example

Set the aria label for the row checkboxes (and header checkbox).:

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.