Skip to content

Commit d8861f4

Browse files
committed
Update documentation for sortAscending and sortDescending ARIA strings
1 parent e91927a commit d8861f4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

js/model/model.defaults.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,9 +1417,10 @@ DataTable.defaults = {
14171417
/**
14181418
* ARIA label that is added to the table headers when the column may be
14191419
* sorted ascending by activing the column (click or return when focused).
1420-
* Note that the column header is prefixed to this string.
1420+
* The variable _HEADER_ is replaced by the column header. If not present,
1421+
* the column header is prefixed to this string.
14211422
* @type string
1422-
* @default : activate to sort column ascending
1423+
* @default _HEADER_: activate to sort column ascending
14231424
*
14241425
* @dtopt Language
14251426
* @name DataTable.defaults.language.aria.sortAscending
@@ -1429,20 +1430,21 @@ DataTable.defaults = {
14291430
* $('#example').dataTable( {
14301431
* "language": {
14311432
* "aria": {
1432-
* "sortAscending": " - click/return to sort ascending"
1433+
* "sortAscending": "click to sort by _HEADER_ ascending"
14331434
* }
14341435
* }
14351436
* } );
14361437
* } );
14371438
*/
1438-
"sSortAscending": ": activate to sort column ascending",
1439+
"sSortAscending": "_HEADER_: activate to sort column ascending",
14391440

14401441
/**
14411442
* ARIA label that is added to the table headers when the column may be
14421443
* sorted descending by activing the column (click or return when focused).
1443-
* Note that the column header is prefixed to this string.
1444+
* The variable _HEADER_ is replaced by the column header. If not present,
1445+
* the column header is prefixed to this string.
14441446
* @type string
1445-
* @default : activate to sort column ascending
1447+
* @default _HEADER_: activate to sort column ascending
14461448
*
14471449
* @dtopt Language
14481450
* @name DataTable.defaults.language.aria.sortDescending
@@ -1452,13 +1454,13 @@ DataTable.defaults = {
14521454
* $('#example').dataTable( {
14531455
* "language": {
14541456
* "aria": {
1455-
* "sortDescending": " - click/return to sort descending"
1457+
* "sortDescending": "click to sort by _HEADER_ descending"
14561458
* }
14571459
* }
14581460
* } );
14591461
* } );
14601462
*/
1461-
"sSortDescending": ": activate to sort column descending"
1463+
"sSortDescending": "_HEADER_: activate to sort column descending"
14621464
},
14631465

14641466
/**

0 commit comments

Comments
 (0)