I am using the DataTables javscript library and I'm trying to filter a row out based on if a numerical value is greater than 60.
I'm trying to follow this example: http://datatables.net/reference/api/filter%28%29
The filter code looks like this:
table
.column( 3 )
.data()
.filter( function ( value, index ) {
return value > 60 ? true : false;
} )
The problem is all rows are still visible and no filtering has been done at all. Even if my function simply returns false all rows are still visible. What's going on here?
JSFiddle of example