/* Documentation for this tablesorter FORK can be found at
* http://mottie.github.io/tablesorter/docs/
*/
$(function() {
$('table').tablesorter({
// *** APPEARANCE ***
// Add a theme - 'blackice', 'blue', 'dark', 'default', 'dropbox',
// 'green', 'grey' or 'ice' stylesheets have all been loaded
// to use 'bootstrap' or 'jui', you'll need to include "uitheme"
// in the widgets option - To modify the class names, extend from
// themes variable. Look for "$.extend($.tablesorter.themes.jui"
// at the bottom of this window
// this option only adds a table class name "tablesorter-{theme}"
//theme: 'blackice',
// fix the column widths
widthFixed: false,
// Show an indeterminate timer icon in the header when the table
// is sorted or filtered
showProcessing: false,
// header layout template (HTML ok); {content} = innerHTML,
// {icon} = <i/> (class from cssIcon)
headerTemplate: '{content}{icon}',
// return the modified template string
onRenderTemplate: null, // function(index, tmpl){ return tmpl; },
// called after each header cell is rendered, use index to target
// the column customize header HTML
onRenderHeader: function(index) {
// the span wrapper is added by default
$(this)
.find('div.tablesorter-header-inner')
.addClass('roundedCorners');
},
// *** FUNCTIONALITY ***
// prevent text selection in header
cancelSelection: true,
// add tabindex to header for keyboard accessibility
tabIndex: true,
// other options: "ddmmyyyy" & "yyyymmdd"
dateFormat: "mmddyyyy",
// The key used to select more than one column for multi-column
// sorting.
sortMultiSortKey: "shiftKey",
// key used to remove sorting on a column
sortResetKey: 'ctrlKey',
// false for German "1.234.567,89" or French "1 234 567,89"
usNumberFormat: true,
// If true, parsing of all table cell data will be delayed
//...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.