mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Add note about using buttons & forms. Fixes #543
This commit is contained in:
parent
6d068d347d
commit
4e0efdffc7
@ -83,7 +83,7 @@
|
|||||||
<li>There are only two filter formatter options, the rest are all select2 options (defaults shown below):
|
<li>There are only two filter formatter options, the rest are all select2 options (defaults shown below):
|
||||||
<pre class="prettyprint lang-js">// select2 filter formatter options
|
<pre class="prettyprint lang-js">// select2 filter formatter options
|
||||||
cellText : '', // Text (wrapped in a label element)
|
cellText : '', // Text (wrapped in a label element)
|
||||||
match : true, // adds "filter-match" to header & modifys search
|
match : true, // adds "filter-match" to header & modifies search
|
||||||
|
|
||||||
// ANY select2 options can be include below (showing default settings for this formatter code)
|
// ANY select2 options can be include below (showing default settings for this formatter code)
|
||||||
multiple : true, // allow multiple selections
|
multiple : true, // allow multiple selections
|
||||||
|
@ -2886,7 +2886,8 @@ $.extend($.tablesorter.themes.jui, {
|
|||||||
</select>
|
</select>
|
||||||
<select class="gotoPage" title="Select page number"></select>
|
<select class="gotoPage" title="Select page number"></select>
|
||||||
</form>
|
</form>
|
||||||
</div></pre>Add this option as follows:<pre class="prettyprint lang-js">$(function(){
|
</div></pre><span class="label label-warning">Caution</span> If you use buttons in your pager container, make sure the buttons include a button type (<code><button type="button">Next</button></code>) to prevent form submission and page reloading every time the button is clicked.<br>
|
||||||
|
<br>Use this option as follows:<pre class="prettyprint lang-js">$(function(){
|
||||||
$("table")
|
$("table")
|
||||||
.tablesorter()
|
.tablesorter()
|
||||||
.tablesorterPager({
|
.tablesorterPager({
|
||||||
|
Loading…
Reference in New Issue
Block a user