add a node "nFilter" to oSettings (for the filter area)

add a node "nFilter" to oSettings (for the filter area)

grahampcharlesgrahampcharles Posts: 20Questions: 1Answers: 0
edited January 2013 in Feature requests
I use the filter area constantly, usually without enabling the "f" setting (e.g. I roll my own). An nFilter node would simplify my code. Also great would be enabling the creation of the filter area without an auto-filter box.

Here's my workaround, if you're interested:

[code]
$.fn.dataTableExt.oApi.fnGetFilterArea = function (oSettings) {
var oFilters = $(oSettings.nTableWrapper).children("." + oSettings.oClasses.sFilter);

if (oFilters.length === 0) {
var nFilter = $("", {
'class': oSettings.oClasses.sFilter,
'id': oSettings.sTableId + '_filter'
}).prependTo(oSettings.nTableWrapper);

return nFilter[0];
} else {
return oFilters[0];
}
}
[/code]
This discussion has been closed.