mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter widget docs: add note about placeholder. Fixes #522.
This commit is contained in:
parent
cfd2eab774
commit
009c8c5f20
@ -270,6 +270,14 @@ $(function(){
|
|||||||
|
|
||||||
<h3><a href="#">Methods</a></h3>
|
<h3><a href="#">Methods</a></h3>
|
||||||
<div>
|
<div>
|
||||||
|
<h3>Set Filter Placeholder Text</h3>
|
||||||
|
<blockquote>
|
||||||
|
Set a <code>data-placeholder</code> attribute on the associated table header with your desired placeholder text
|
||||||
|
<pre class="prettyprint lang-html"><th data-placeholder="Enter Something">Name</th></pre>
|
||||||
|
or, set the header cell's jQuery data
|
||||||
|
<pre class="prettyprint lang-javascript">$('.tablesorter th:eq(0)').data('placeholder', 'Search for...')</pre>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
<h3>filterReset</h3>
|
<h3>filterReset</h3>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
Use the <code>filterReset</code> method to reset (clear) all of the current filters using this method
|
Use the <code>filterReset</code> method to reset (clear) all of the current filters using this method
|
||||||
|
@ -487,7 +487,7 @@ tsff = ts.filterFormatter = {
|
|||||||
endOfDay : true,
|
endOfDay : true,
|
||||||
// include ANY jQuery UI spinner options below
|
// include ANY jQuery UI spinner options below
|
||||||
|
|
||||||
defaultDate : '', // ******************************** FIX THIS *******************************************
|
defaultDate : '',
|
||||||
|
|
||||||
changeMonth : true,
|
changeMonth : true,
|
||||||
changeYear : true,
|
changeYear : true,
|
||||||
|
Loading…
Reference in New Issue
Block a user