Namespace: oAria

Ancestry: DataTable » .defaults » .oLanguage. » oAria

DataTables v1.9.4 documentation

Navigation

Hiding private elements (toggle)
Showing extended elements (toggle)

Strings that are used for WAI-ARIA labels and controls only (these are not actually visible on the page, but will be read by screenreaders, and thus must be internationalised as well).

Summary

Properties - static

<static> sSortAscending :string

ARIA label that is added to the table headers when the column may be sorted ascending by activing the column (click or return when focused). Note that the column header is prefixed to this string.

<static> sSortDescending :string

ARIA label that is added to the table headers when the column may be sorted descending by activing the column (click or return when focused). Note that the column header is prefixed to this string.

Details

Properties - static

<static> sSortAscending :string

ARIA label that is added to the table headers when the column may be sorted ascending by activing the column (click or return when focused). Note that the column header is prefixed to this string.

Example
   $(document).ready( function() {
     $('#example').dataTable( {
       "oLanguage": {
         "oAria": {
           "sSortAscending": " - click/return to sort ascending"
         }
       }
     } );
   } );
<static> sSortDescending :string

ARIA label that is added to the table headers when the column may be sorted descending by activing the column (click or return when focused). Note that the column header is prefixed to this string.

Example
   $(document).ready( function() {
     $('#example').dataTable( {
       "oLanguage": {
         "oAria": {
           "sSortDescending": " - click/return to sort descending"
         }
       }
     } );
   } );