<li><spanclass="label label-info">IMPORTANT</span> If using jQuery versions older than 1.8, css box-sizing for the table <em>MUST</em> be set as <code>box-sizing: content-box;</code> or the resizable widget will not work properly.</li>
<li><spanclass="label label-info">IMPORTANT</span> The resizable will not work properly if the <ahref="index.html#widthfixed"><code>widthFixed</code></a> option is set to <code>true</code>. Make sure it is set to <code>false</code> (default setting).</li>
<li><del><spanclass="label label-info">IMPORTANT</span> The resize div ends up with a zero height if the header cell is empty. Please include at least a <code>&nbsp;</code> in the cell to allow it to render properly (<ahref="https://github.com/Mottie/tablesorter/issues/844"title="Thanks gigib82!">ref</a>)</del>. No longer necessary as the resizable widget no longer adds elements inside the table header cells.<br><br></li>
<li>A <aclass="intlink"href="#events"><code>resizableUpdate</code></a> event can be triggered on the table to update the resizable handles.</li>
<li>A <aclass="intlink"href="#events"><code>resizableReset</code></a> event can be triggered to reset the resizable columns to their default widths.</li>
<li>In <spanclass="version">v2.22.2</span>, resizable will now work with tables inside an overflow wrapper (see <ahref="https://github.com/Mottie/tablesorter/issues/953">issue #953</a>).</li>
<li>In <spanclass="version">v2.21.5</span>, this widget now works with the columnSelector widget & tables with margins (see <ahref="https://github.com/Mottie/tablesorter/issues/864">issue #864</a>).</li>
<li>Performed a major overhaul on the resizable widget to add resizable handles outside of the table, so now the resizable handles can be used over the entire height of the table!</li>
<li>This change allows the resizable widget to work seemlessly with the <strong>stickyHeaders</strong> widget (included in this demo); sadly, to make it work with the scroller widget will require more work.</li>
</ul>
</li>
<li>In <spanclass="version">v2.17.4</span>, modified the bindings so the mouse move will now work on the document instead of only within the table header; this makes interaction consistent with what the user expects.</li>
<li>In <spanclass="version">v2.15.12</span>, added <code>resizable_widths</code> option which allows the setting of default & reset header widths.</li>
<li>As of tablesorter version 2.9+, this widget can no longer be applied to versions of tablesorter prior to version 2.8.</li>
<li>This widget now saves all changed column widths to local storage, or it falls back to a cookie! (v2.1)</li>
<li>Column width saving requires the new "$.tablesorter.storage()" function included with the "jquery.tablesorter.widgets.js" file (v2.1).</li>
<li>Right clicking (opening the context menu) will now reset the resized columns (v2.4).</li>
<li>Holding down the shift key while resizing will force the last column or the table to resize instead of the next column, but only if the table is full width (v2.7.4).</li>
<li>Prevent resizing a column by adding any of the following (they all do the same thing), set in order of priority (v2.7.4):
<ul>
<li>jQuery data <code>data-resizable="false"</code>.</li>
<li>metadata <code>class="{ resizable: 'false'}"</code>. This requires the metadata plugin.</li>
<li>header class name <code>class="resizable-false"</code>.</li>
</ul>
</li>
<li>Setting the <code>resizable</code> widget option to <code>false</code>, will only prevent the saving of resized columns, it has nothing to do with preventing a column from being resized.</li>
<li>Because this widget uses jQuery's <code>closest()</code> (jQuery 1.3+) and <code>index()</code> (jQuery 1.4+) functions, it requires these newer versions of jQuery in order to work.</li>
<li>In order to save the resized widths, jQuery version 1.4.1+ should be used because jQuery's <code>parseJson()</code> function is needed.</li>
<li>Setting the <code>resizable_addLastColumn</code> widget option to <code>true</code> will add the resizable handle to the last column, see the "non-full" width table below (<spanclass="version">v2.9.0</span>).</li>
</ul>
</div>
<h3><ahref="#">Options</a></h3>
<div>
<h4>Resizable widget defaults (added inside of tablesorter <code>widgetOptions</code>)</h4>
<div>
<spanclass="label label-info">TIP!</span> Click on the link in the function column to reveal full details (or <ahref="#"class="toggleAll">toggle</a>|<ahref="#"class="showAll">show</a>|<ahref="#"class="hideAll">hide</a> all) or double click to update the browser location.
<p>This option allows the setting of column widths initially (before any resizing occurs, or if there are no saved column widths) and when resetting (right-click on the column header) or triggering a <aclass="intlink"href="#events"><code>resizableReset</code></a> event on the table.</p>
<td>When this option is set to a number, or true, the resizing event from the window is throttled.
<divclass="collapsible">
<p>Essentially, throttling the resize event limits the number of times the javascript is executed while resizing the window.</p>
<p>Without any throttling, slower browsers may lag while the javascript adjusts the column widths of the table.</p>
<p>With excessive throttling, the user will notice the table column width lag (while will be seen as the width jumping sporatically to catch up to the mouse) behind the mouse movement.</p>
<p>When this option is set to <code>true</code>, a default of <code>5</code> (milliseconds) is used.</p>
<p>If setting a number, try to keep this number in the <code>0</code> to <code>10</code> range.</p>
<p>When <code>true</code>, resizing a column will change the size of the selected column, and the last column, not the selected column's neighbor.</p>
<p>When <code>false</code>, resizing a column will move the column border between it's neighbors.</p>
<p>Also, in a <em>full width table</em>, if this option is <code>false</code>, the same behavior as when this option is <code>true</code> can be seen when resizing a column while holding down the <kbd>Shift</kbd> key on the keyboard - the last column is resized.</p>
A <code>resizableUpdate</code> event (added <spanclass="version">v2.28.5</span>) can be triggered on the table to force an update of the resizable handles. This behaves the same as triggering a <code>resize</code> event on the <code>window</code> without causing any unwanted page reflow.
<preclass="prettyprint lang-js">// equivalent to $( window ).trigger( 'resize' );
$( 'table' ).trigger( 'resizableUpdate' );</pre>
</blockquote>
<h3>resizableReset</h3>
<blockquote>
A <code>resizableReset</code> event (added <spanclass="version">v2.28.5</span>) can be triggered on the table reset the resizable columns to their original, or set <aclass="intlink"href="#resizable-widths"><code>resizable_widths</code></a> value. This is the same as the user right-clicking on the table header causing a reset.
<small><spanclass="results">†</span> Resized values for this table are saved to <em>session storage</em> - values are lost once the browser is closed.</small>
<small><spanclass="results">‡</span> Resized values for this table are saved to <em>local storage</em> - values are not lost once the browser is closed.</small>