Docs: update ajaxError pager widget equivalent

This commit is contained in:
Mottie 2015-08-15 11:08:42 -05:00
parent be6999c67a
commit 53ebab4c30

View File

@ -3835,6 +3835,8 @@ $('table').trigger('search', false);</pre></div>
This callback allows you to customize the error message displayed in the <code>thead</code> (<span class="version">v2.22.6</span>).
<div class="collapsible">
<br>
<span class="label label-info">Note</span> The pager widget equivalent option is within the <code>widgetOptions</code> and accessed via <code>widgetOptions.pager_ajaxError</code><br>
<br>
When there is an ajax error, the <a href="#function-showError"><code>$.tablesorter.showError</code></a> function is called. In <span class="version">v2.22.6</span>, that function now checks this callback to allow adding a custom error message.<br>
<br>
Use it as follows: