I am using jQuery datatables in a small project I am working on. At this point I am just setting up some filtering functions to make the table more user friendly. The documentation for the filter function tells me:
Input parameters:
{string}: String to filter the table on
{int|null}: Column to limit filtering to
{bool} [default=false]: Treat as regular expression or not
{bool} [default=true]: Perform smart filtering or not
{bool} [default=true]: Show the input global filter in it's input box(es)
{bool} [default=true]: Do case-insensitive matching (true) or not (false)
I understand all but the fifth -
Show the input global filter in it's input box(es)
Some of my guesses:
- It determines whether or not to show add the applied filter to the input box in the upper toolbar of the datatable. (Nope, nothing shows up in there whether I have it set to true or false, and whether I specify a column or use global filtering)
- It determines whether or not this input box shows up at all, same as the
bFilter
property of the initialization object. Seems weird to have the option here, in the method that uses the filtering function, so I doubt it (plus, if doesn't disappear when I run the method with ("test",null,false,true,false)` - It determines whether the text already entered into the global filtering input is taken into account for the new filter (nope, tried filtering with the text box then filtering with the API, supplying false for this parameter - the result had both filters applied.)
Does anyone know what it does??? I mean, in all seriousness I am likely to only use the first two, but I'd like to know what the option is before I decide to ignore it.