From 492c02299265efe3b1a92a169d418e31972cafeb Mon Sep 17 00:00:00 2001 From: Mottie Date: Wed, 5 Mar 2014 13:49:54 -0600 Subject: [PATCH] Added docs for language variable; used by aria-label in the header --- docs/index.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/docs/index.html b/docs/index.html index d3d26f77..203156d5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4090,6 +4090,53 @@ $('table').trigger( 'search', [['', '', '', '', 'orange']] ); // find orange in + + + Object + This object contains the phrases (in English by default) added to the aria-label on each header column.
+
+
+ This is how the object is set up: +
$.tablesorter.language = {
+  sortAsc  : 'Ascending sort applied, ',
+  sortDesc : 'Descending sort applied, ',
+  sortNone : 'No sort applied, ',
+  nextAsc  : 'activate to apply an ascending sort',
+  nextDesc : 'activate to apply a descending sort',
+  nextNone : 'activate to remove the sort'
+};
+ So, as an example, in the following situation: + + Then the label will be built as follows: +
// "Header Name" + $.tablesorter.language.sortAsc + $.tablesorter.language.nextDesc
+"Account #: Ascending sort applied, activate to apply a descending sort"
+ If the next click were to reset the sort (sortReset applied), then the message would use $.tablesorter.language.nextNone.
+
+ Use this variable to change the language as follows: +
$(function(){
+
+  $.tablesorter.language = {
+    sortAsc  : "sorting from a to z, ",
+    sortDesc : "sorting from z to a, ",
+    sortNone : "not sorted, but ",
+    nextAsc  : "click to sort from a to z",
+    nextDesc : "click to sort from z to a",
+    nextNone : "click to clear the sort"
+  }
+  $("table").tablesorter();
+});
+
+ +