PicNet/tablefilter — Issue #39: no filter is created for column when header text is only one character long
Author: vlandham
Created: 2012-02-02 22:05:32+00:00
State: open

Not sure if this is expected behavior. If a column header is something like 'X', 'y', or 'r', no filter is created for it.

In the current version of picnet.table.filter.full.js - line 15960:

https://github.com/PicNet/tablefilter/blob/master/picnet.table.filter.full.js#L15960

has:

if (headerText && headerText.length > 1) {
var filter = this.getFilterDom(i, header);
goog.style.setStyle(filter, 'width', '95%');
td = goog.dom.createDom('td', null, filter);
} else { td = goog.dom.createDom('td', {}, ''); }

I believe this is the source of the issue. Is there a reason that headerText.length cannot be >= 1 ?