Skip to content

Commit

Permalink
Docs: Add when not to use headers. See #1524
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed May 1, 2018
1 parent e5592a7 commit f92fa2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ <h1>Configuration</h1>
(<span class="version updated">v2.17.1</span>)
<div class="collapsible">
<br>
<span class="label label-warning">Warning</span> <strong>Do not</strong> use this option if your header contains multiple rows or any <code>colspan</code> or <code>rowspan</code>. Instead add a data-attribute or class name to the header (see the first demo for an example).<br>
For example, to disable sorting on the first two columns of a table: <code>headers: { 0: { sorter: false}, 1: {sorter: false} }</code>.<br>
<br>
The plugin attempts to detect the type of data that is contained in a column, but if it can't figure it out then it defaults to alphanumeric. You can easily override this by setting the header argument (or column parser).
Expand Down

0 comments on commit f92fa2a

Please sign in to comment.