Docs: updates & removed some widgets from beta

This commit is contained in:
Mottie 2015-02-06 23:04:28 -06:00
parent 48d6ba5007
commit f6b33cc367
21 changed files with 40 additions and 85 deletions

View File

@ -22,6 +22,8 @@ table.options .property, .setwidth {width:115px;}
table.options .type {width:100px; }
table.options .defaults {width:160px;}
table.options .examples {width:60px;}
table.options thead th:nth-child(1) { width: 10%; }
table.options thead .defaults { width: 1%; }
table.compatibility { width: 50%; float: right; font-size: .8em; margin-left: 20px; }
table.compatibility th,table.compatibility td { text-align: center; padding: 2px; }
pre,#display {overflow-x:auto;padding:15px;border:1px solid #ddd;border-left-width:5px;}

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>jQuery plugin: Tablesorter 2.0 - Align Character Widget (beta)</title>
<title>jQuery plugin: Tablesorter 2.0 - Align Character Widget</title>
<!-- jQuery -->
<script src="js/jquery-latest.min.js"></script>
@ -75,7 +75,7 @@ td:nth-child(3) .ts-align-right i {
<div id="banner">
<h1>table<em>sorter</em></h1>
<h2>Align Character Widget (beta)</h2>
<h2>Align Character Widget</h2>
<h3>Flexible client-side table sorting</h3>
<a href="index.html">Back to documentation</a>
</div>
@ -92,7 +92,6 @@ td:nth-child(3) .ts-align-right i {
<ul>
<li>In <span class="version">v2.18.5</span>, if there is nothing to the right of the set align character, then the align character will not be added; this prevents hanging decimals like <code>3000.</code>.<p></p></li>
<li>This widget will <strong>only work</strong> in tablesorter version 2.8+ and jQuery version 1.7+.</li>
<li>The widget is still in "beta", so options &amp; functionality may change without warning; and, it has not been thoroughly tested!</li>
<li>Make sure to include the CSS shown below to maintain the alignment.</li>
<li><span class="label warning">*NOTE*</span> if the table cell becomes too narrow, the alignment <strong>will not</strong> be maintained &amp; some content may overflow into the next/previous cell (the widget css does include <code>overflow:hidden</code> on the wrapper, so some content will be hidden instead of overflowing).</li>
<li>Until the day that <code>text-align: '.';</code> becomes standard (<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-align">ref</a>), if ever, this widget might prove useful.</li>

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>jQuery plugin: Tablesorter 2.0 - Column Selector Widget (beta)</title>
<title>jQuery plugin: Tablesorter 2.0 - Column Selector Widget</title>
<!-- jQuery -->
<script src="js/jquery-latest.min.js"></script>
@ -28,14 +28,6 @@
.popover.right { text-align: left; }
.ui-widget-content a { color: #428bca; }
</style>
<script>
$(function(){
$('.options').tablesorter({
widthFixed: true,
widgets: ['stickyHeaders']
});
});
</script>
<style id="css">/*** custom css only popup ***/
.columnSelectorWrapper {
@ -167,7 +159,7 @@
<div id="banner">
<h1>table<em>sorter</em></h1>
<h2>Column Selector Widget (beta)</h2>
<h2>Column Selector Widget</h2>
<h3>Flexible client-side table sorting</h3>
<a href="index.html">Back to documentation</a>
</div>

View File

@ -552,8 +552,6 @@ td.no-edit, span.no-edit {
<script>
$(function() {
$('.options').tablesorter();
var wo = $('#table')[0].config.widgetOptions;
$('.enter').click(function(){
var t = wo.editable_enterToAccept = !wo.editable_enterToAccept;

View File

@ -18,14 +18,6 @@
/* override the vertical-align top in the blue theme */
.notes.tablesorter-blue tbody td { vertical-align: middle; }
</style>
<script>
$(function(){
$('.options').tablesorter({
widthFixed: true,
widgets: ['stickyHeaders']
});
});
</script>
<!-- Tablesorter: required -->
<link rel="stylesheet" href="../css/theme.blue.css">

View File

@ -35,6 +35,7 @@
<link rel="stylesheet" href="../css/theme.blue.css">
<link rel="stylesheet" href="../css/theme.ice.css">
<script src="../js/jquery.tablesorter.js"></script>
<script src="../js/jquery.tablesorter.widgets.js"></script>
<script src="../js/widgets/widget-formatter.js"></script>
@ -46,7 +47,7 @@
$('.tablesorter').tablesorter({
theme: 'blue',
widgets: ['formatter'],
widgets: ['formatter', 'filter'],
widgetOptions: {
formatter_column: {
'.emphasize' : function( text, data ) {
@ -206,7 +207,7 @@ function prettyDate(date){
<tr>
<th class="emphasize">Super Hero</th>
<th class="supercar">Super Car</th>
<th class="duckify">Image Links</th>
<th class="duckify filter-select">Image Links</th>
<th class="date">Added</th>
</tr>
</thead>
@ -236,14 +237,5 @@ function prettyDate(date){
</div>
<script>
$(function(){
$('.options').tablesorter({
widthFixed: true,
widgets: ['stickyHeaders']
});
});
</script>
</body>
</html>

View File

@ -69,14 +69,6 @@ tr.group-header.collapsed td i {
<script src="../js/parsers/parser-input-select.js"></script>
<script src="../js/widgets/widget-grouping.js"></script>
<script>
$(function(){
$('.options').tablesorter({
widgets: [ "stickyHeaders" ]
});
});
</script>
<script id="js">$(function(){
$("#groups").tablesorter({

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>jQuery plugin: Tablesorter 2.0 - Math Widget (beta)</title>
<title>jQuery plugin: Tablesorter 2.0 - Math Widget</title>
<!-- jQuery -->
<script src="js/jquery-latest.min.js"></script>
@ -78,11 +78,6 @@
};
$(function(){
$('.options').tablesorter({
widthFixed: true,
widgets: [ "stickyHeaders" ]
});
$('button').click(function () {
process();
});
@ -166,7 +161,7 @@
<div id="banner">
<h1>table<em>sorter</em></h1>
<h2>Math Widget (beta)</h2>
<h2>Math Widget</h2>
<h3>Flexible client-side table sorting</h3>
<a href="index.html">Back to documentation</a>
</div>

View File

@ -204,7 +204,7 @@
<body>
<div id="banner">
<h1>table<em>sorter</em></h1>
<h2>Output Widget (beta)</h2>
<h2>Output Widget</h2>
<h3>Flexible client-side table sorting</h3>
<a href="index.html">Back to documentation</a>
</div>

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>jQuery plugin: Tablesorter 2.0 - Print Widget (beta)</title>
<title>jQuery plugin: Tablesorter 2.0 - Print Widget</title>
<!-- jQuery -->
<script src="js/jquery-latest.min.js"></script>
@ -104,7 +104,7 @@
<body>
<div id="banner">
<h1>table<em>sorter</em></h1>
<h2>Print Widget (beta)</h2>
<h2>Print Widget</h2>
<h3>Flexible client-side table sorting</h3>
<a href="index.html">Back to documentation</a>
</div>

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>jQuery plugin: Tablesorter 2.0 - Table Reflow Widget (beta)</title>
<title>jQuery plugin: Tablesorter 2.0 - Table Reflow Widget</title>
<!-- jQuery -->
<script src="js/jquery-latest.min.js"></script>
@ -228,7 +228,7 @@
<div id="banner">
<h1>table<em>sorter</em></h1>
<h2>Table Reflow Widget (beta)</h2>
<h2>Table Reflow Widget</h2>
<h3>Flexible client-side table sorting</h3>
<a href="index.html">Back to documentation</a>
</div>

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>jQuery plugin: Tablesorter 2.0 - Static Row Widget (beta)</title>
<title>jQuery plugin: Tablesorter 2.0 - Static Row Widget</title>
<!-- jQuery -->
<script src="js/jquery-latest.min.js"></script>
@ -28,14 +28,6 @@
line-height: 12px;
}
</style>
<script>
$(function() {
$('.options').tablesorter({
widthFixed: true
});
});
</script>
<style id="css">#alphimals td {
text-align: center;
}
@ -83,7 +75,7 @@
<body>
<div id="banner">
<h1>table<em>sorter</em></h1>
<h2>Static Row Widget (beta)</h2>
<h2>Static Row Widget</h2>
<h3>Flexible client-side table sorting</h3>
<a href="index.html">Back to documentation</a>
</div>
@ -152,7 +144,7 @@
</ul>
These values take priority over the actual row index, so as shown in the "Single tbody" demo below, the header row is set to 50%, but initially, it is located at the top of the table.<br>
<br>
If these values are changed dynamically, the static row location can be updated
If these values are changed dynamically, the static row location can be updated
</div>
</td>
</tr>

View File

@ -143,11 +143,6 @@ Note:
<script>
$(function() {
$('.options').tablesorter({
widthFixed: true,
widgets: ['stickyHeaders']
});
window.includeCaption = true;
$('.caption').on('click', function(){
includeCaption = !includeCaption;

View File

@ -467,12 +467,12 @@
</h4>
<ul>
<li><span class="label label-info">Beta</span> <a href="example-widget-align-character.html">Align Character Widget</a> (<span class="version">v2.15.8</span>).</li>
<li><a href="example-widget-align-character.html">Align Character Widget</a> (<span class="version">v2.15.8</span>).</li>
<li><a href="example-widget-build-table.html">Build Table Widget</a> (<span class="version">v2.11</span>; <span class="version updated">v2.16</span>).</li>
<li><span class="label label-info">Beta</span> <a href="example-widget-chart.html">Chart Widget</a> (<span class="version">v2.18.5</span>).</li>
<li><span class="results">&dagger;</span> <a href="example-widget-columns.html">Columns Highlight widget</a> (v2.0.17)</li>
<li><span class="label label-info">Beta</span> <a href="example-widget-column-selector.html">Column Selector widget</a> (<span class="version">v2.15</span>; <span class="version updated">v2.18.5</span>).</li>
<li><a href="example-widget-column-selector.html">Column Selector widget</a> (<span class="version">v2.15</span>; <span class="version updated">v2.18.5</span>).</li>
<li><a href="example-widget-editable.html">Content Editable widget</a> (v2.9; <span class="version updated">v2.18.0</span>).</li>
<li><span class="label label-info">Beta</span> <a href="example-dragtable.html">Dragtable mod</a> - (jQuery UI widget for column reordering [<a href="http://stackoverflow.com/a/27770224/145346">ref</a>]; <span class="version">v2.18.5</span>).</li>
<li><span class="results">&dagger;</span> Filter Widget (<span class="version updated">v2.17.4</span>):
@ -494,9 +494,9 @@
</ul>
</li>
<li><a href="example-widget-header-titles.html">Header titles widget</a> (v2.15.6; <span class="version updated">2.15.7</span>)</li>
<li><span class="label label-info">Beta</span> <a href="example-widget-math.html">Math widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.0</span>).</li>
<li><a href="example-widget-math.html">Math widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.0</span>).</li>
<li>
<span class="label label-info">Beta</span> <a href="example-widget-output.html">Output widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.5</span>)
<a href="example-widget-output.html">Output widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.5</span>)
<br><br>
</li>
@ -506,13 +506,13 @@
<br>
</li>
<li><span class="label label-info">Beta</span> <a href="example-widget-print.html">Print widget</a> (<span class="version">v2.16.4</span>; <span class="version updated">v2.18.5</span>)</li>
<li><span class="label label-info">Beta</span> <a href="example-widget-reflow.html">Reflow widget</a> (<span class="version">v2.16</span>)</li>
<li><a href="example-widget-print.html">Print widget</a> (<span class="version">v2.16.4</span>; <span class="version updated">v2.18.5</span>)</li>
<li><a href="example-widget-reflow.html">Reflow widget</a> (<span class="version">v2.16</span>)</li>
<li><a href="example-widgets.html">Repeat Headers widget</a> (v2.0.5; <span class="version updated">v2.18.0</span>)</li>
<li><span class="results">&dagger;</span> <a href="example-widget-resizable.html">Resizable Columns widget</a> (v2.0.23.1; <span class="version updated">v2.18.0</span>)</li>
<li><span class="results">&dagger;</span> <a href="example-widget-savesort.html">Save sort widget</a> (v2.0.27)</li>
<li><a href="example-widget-scroller.html">Scroller widget</a> (<span class="version">v2.9</span>; <span class="version updated">v2.18.5</span>).</li>
<li><span class="label label-info">Beta</span> <a href="example-widget-static-row.html">StaticRow widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.3</span>).</li>
<li><a href="example-widget-static-row.html">StaticRow widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.3</span>).</li>
<li><span class="results">&dagger;</span> <a href="example-widget-sticky-header.html">Sticky header widget</a> (v2.0.21.1; <span class="version updated">v2.18.0</span>)</li>
<li><a href="example-widget-css-sticky-header.html">Sticky header (css3) widget</a> (<span class="version">v2.14.2</span>; <span class="version updated">v2.18.3</span>).</li>
<li><span class="results">&dagger;</span> UITheme widget (<span class="version updated">v2.17.4</span>; <span class="version updated">v2.18.5</span>):
@ -6324,9 +6324,10 @@ $.tablesorter.getData( headerCell, config.headers[column], &quot;sorter&quot; );
<pre class="prettyprint lang-js">$.tablesorter.formatFloat(string, table);</pre>
<ul>
<li><code>string</code> - a string possibly containing a number.</li>
<li><code>table</code> - table DOM element (or jQuery object) of table.</li>
<li><code>table</code> - table DOM element (or jQuery object) of table (optional; required for non U.S. formatting).</li>
</ul>
If <code>string</code> is empty, not a string type, or not a number (after processing), the string itself is returned.<br>
If <code>table</code> is not provided, the format float function will default to U.S. number formatting. The reason a <code>table</code> parameter is needed is to check the value of the <a href="#usnumberformat"><code>usNumberFormat</code></a> option.<br>
<br>
This function uses the <a href="#usnumberformat"><code>usNumberFormat</code></a> option to determine if either commas or decimals are removed before converting the value within the <code>string</code> parameter into a number type variable. This function does not use the <a href="#function-isdigit"><code>$.tablesorter.isDigit</code></a> function.<br>
<br>

View File

@ -154,6 +154,12 @@
}
}
});
$t.find('table.options').not('.tablesorter-jui').tablesorter({
widthFixed: true,
widgets: ['stickyHeaders']
});
}
});
@ -170,7 +176,7 @@
// move below sticky header; added delay as there could be some lag
setTimeout(function(){
$t = prop.closest('table');
if ($t.length) {
if ($t.length && $t[0].config) {
wo = $t[0].config.widgetOptions;
h = ( wo.$sticky ? wo.$sticky.height() : '' ) || $t.hasClass('hasStickHeaders') ? 27 : 0;
if ($t.hasClass('options') || $t.hasClass('api')) {

View File

@ -1314,7 +1314,6 @@ ts.filter = {
if (wo.filter_useParsedData || data.parsed[columnIndex]) {
data.exact = data.cache;
} else {
// using older or original tablesorter
val = $cells[columnIndex];
result = $.trim( val.getAttribute( c.textAttribute ) || val.textContent || $cells.eq(columnIndex).text() );
data.exact = c.sortLocaleCompare ? ts.replaceAccents(result) : result; // issue #405

View File

@ -1,4 +1,4 @@
/* Column Selector/Responsive table widget (beta) for TableSorter - 1/20/2015 (v2.18.5)
/* Column Selector/Responsive table widget for TableSorter - 1/20/2015 (v2.18.5)
* Requires tablesorter v2.8+ and jQuery 1.7+
* by Justin Hallett & Rob Garrison
*/

View File

@ -1,4 +1,4 @@
/*! tablesorter math widget - beta - updated 5/28/2014 (v2.17.1)
/*! tablesorter math widget - updated 5/28/2014 (v2.17.1)
* Requires tablesorter v2.16+ and jQuery 1.7+
* by Rob Garrison
*/

View File

@ -1,4 +1,4 @@
/* Output widget (beta) for TableSorter 7/17/2014 (v2.17.5)
/* Output widget for TableSorter 7/17/2014 (v2.17.5)
* Requires tablesorter v2.8+ and jQuery 1.7+
* Modified from:
* HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?)

View File

@ -1,4 +1,4 @@
/* Print widget (beta) for TableSorter 6/18/2014 (v2.17.2)
/* Print widget for TableSorter 6/18/2014 (v2.17.2)
* Requires tablesorter v2.8+ and jQuery 1.2.6+
*/
/*jshint browser:true, jquery:true, unused:false */

View File

@ -1,4 +1,4 @@
/* table reflow widget (beta) for TableSorter 3/22/2014 (v2.16.0)
/* table reflow widget for TableSorter 3/22/2014 (v2.16.0)
* Requires tablesorter v2.8+ and jQuery 1.7+
* Also, this widget requires the following default css (modify as desired)