I've got a dataTable, built from a json file, with a hidden 6th column that I use for filtering by category (a category which doesn't appear in the table)
in my aoColumnDefs it looks like so:
}, {
"aTargets": [5],
"mData": 8,
"bVisible": false
}
I want to query the table somehow to find out how many records of each category are currently shown in the table (there are various other filters that may be applied at any time).
I thought I might be able to use the $ api to get at the column... something like myTable.$('tr td:eq(5)).text()
, but I realize that column doesn't actually appear in the markup.
Is there a built in method that I can get that kind of info out of the table? DataTables obviously has this data because I can filter with it, I just don't know how to get at it. I'm not much of a programmer, so it may be obvious and I'm just overlooking it.
Thanks!