{"id":102,"date":"2008-05-07T14:55:21","date_gmt":"2008-05-07T12:55:21","guid":{"rendered":"http:\/\/www.hermione.de\/blog\/?p=102"},"modified":"2008-05-07T14:55:21","modified_gmt":"2008-05-07T12:55:21","slug":"tablesorter-jquery","status":"publish","type":"post","link":"http:\/\/blog.hermione.de\/?p=102","title":{"rendered":"tablesorter [jquery]"},"content":{"rendered":"<h4>tablesorter plugin<\/h4>\n<p>Das tablesorter plugin und eine Zeile javascript machen aus einer Tabelle eine sortierbare Tabelle.<\/p>\n<table class=\"rosa\">\n<tbody>\n<tr>\n<td>\n<pre><code>$('#myTable').tablesorter( {widgets: ['zebra']} );<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Fuer diese Tabelle wurde das <a href=\"http:\/\/tablesorter.com\/themes\/blue\/blue.zip\">blue theme<\/a> des tablesorter Plugins leicht abgewandelt.<\/p>\n<table id=\"tablesorterTable\" class=\"tablesorter\">\n<thead>\n<tr>\n<th>null<\/th>\n<th>eins<\/th>\n<th>zwei<\/th>\n<th>drei<\/th>\n<th>vier<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>januar<\/td>\n<td>aaa<\/td>\n<td>Katze<\/td>\n<td>10.03.2007<\/td>\n<td>40,345<\/td>\n<\/tr>\n<tr>\n<td>maerz<\/td>\n<td>bbb<\/td>\n<td>lief<\/td>\n<td>11.04.2003<\/td>\n<td>40.345<\/td>\n<\/tr>\n<tr>\n<td>oktober<\/td>\n<td>ccc<\/td>\n<td>im<\/td>\n<td>07.02.2009<\/td>\n<td>20.222<\/td>\n<\/tr>\n<tr>\n<td>oktober<\/td>\n<td>ddd<\/td>\n<td>Schnee<\/td>\n<td>01.08.2007<\/td>\n<td>20,111<\/td>\n<\/tr>\n<tr>\n<td>maerz<\/td>\n<td>eee<\/td>\n<td>katze<\/td>\n<td>02.08.2007<\/td>\n<td>39,009<\/td>\n<\/tr>\n<tr>\n<td>oktober<\/td>\n<td>fff<\/td>\n<td>lief<\/td>\n<td>04.04.2004<\/td>\n<td>39<\/td>\n<\/tr>\n<tr>\n<td>oktober<\/td>\n<td>ggg<\/td>\n<td>im<\/td>\n<td>05.05.2007<\/td>\n<td>46,21<\/td>\n<\/tr>\n<tr>\n<td>januar<\/td>\n<td>hhh<\/td>\n<td>schnee<\/td>\n<td>05.06.2007<\/td>\n<td>39,0<\/td>\n<\/tr>\n<tr>\n<td>maerz<\/td>\n<td>iii<\/td>\n<td>katze lief<\/td>\n<td>06.05.2007<\/td>\n<td>15.0<\/td>\n<\/tr>\n<tr>\n<td>oktober<\/td>\n<td>jjj<\/td>\n<td>Katze schlief<\/td>\n<td>05.05.2008<\/td>\n<td>22,07<\/td>\n<\/tr>\n<tr>\n<td>maerz<\/td>\n<td>kkk<\/td>\n<td>miau<\/td>\n<td>01.01.1977<\/td>\n<td>27,77<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Multi-column sorting<\/h4>\n<p>Sort multiple columns simultaneously by holding down the shift key and clicking a second, third or even fourth column header!<\/p>\n<h4>Nach deutschformatigem Datum sortieren<\/h4>\n<p>Das tablesorter Plugin kann nicht nach deutschem Datum sortieren, aber man kann es ihm beibringen:<\/p>\n<ul>\n<li>Nach &#8222;dateFormat&#8220; suchen.<\/li>\n<li>Datumstrenner um &#8222;.&#8220; erweitern (is-Funktion)<\/li>\n<li>uk-Zweig von dateFormat kopieren und in &#8222;de&#8220; umbenennen<\/li>\n<li>&#8222;.&#8220; bzw &#8222;\\.&#8220; in der regular Expression ergaenzen<\/li>\n<\/ul>\n<h4>links<\/h4>\n<ul>\n<li><a href=\"http:\/\/tablesorter.com\/jquery.tablesorter.zip\">Plugin download<\/a><\/li>\n<li><a href=\"http:\/\/tablesorter.com\/docs\/\">tablesorter doku<\/a><\/li>\n<li><a href=\"http:\/\/docs.jquery.com\/Plugins\/Tablesorter\/tablesorter#options\">tablesorter options<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>tablesorter plugin Das tablesorter plugin und eine Zeile javascript machen aus einer Tabelle eine sortierbare Tabelle. $(&#8218;#myTable&#8216;).tablesorter( {widgets: [&#8218;zebra&#8216;]} ); Fuer diese Tabelle wurde das blue theme des tablesorter Plugins leicht abgewandelt. null eins zwei drei vier januar aaa Katze 10.03.2007 40,345 maerz bbb lief 11.04.2003 40.345 oktober ccc im 07.02.2009 20.222 oktober ddd Schnee [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/posts\/102"}],"collection":[{"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=102"}],"version-history":[{"count":0,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.hermione.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}