From 363232173d211c2591559702f422168f283d51af Mon Sep 17 00:00:00 2001 From: Mottie Date: Thu, 17 Jul 2014 07:28:12 -0500 Subject: [PATCH] Docs: Add info about imgAttr setting for image parser --- docs/index.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/index.html b/docs/index.html index 2926e90d..dbd77aa0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1751,6 +1751,28 @@ $(function(){ + + + String + "alt" + + Used by the image parser to grab the image attribute content (v2.17.5). +

+ Change this setting to grab a different image attribute to be used for sorting: +
$(function(){
+  $('table').tablesorter({
+    // parse image title (value to be used while sorting & filtering)
+    imgAttr : 'title',
+    headers : {
+      0 : { sorter: 'image' }
+    }
+  });
+});
+
+ + + +