From f92fa2aff2440625161e92f5184a809def0dbf11 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 1 May 2018 14:08:40 -0500 Subject: [PATCH] Docs: Add when not to use headers. See #1524 --- docs/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.html b/docs/index.html index 4dfceff6..a23e026d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1001,6 +1001,7 @@ (v2.17.1)

+ Warning Do not use this option if your header contains multiple rows or any colspan or rowspan. Instead add a data-attribute or class name to the header (see the first demo for an example).
For example, to disable sorting on the first two columns of a table: headers: { 0: { sorter: false}, 1: {sorter: false} }.

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).