nl_tokens: Filters out table data that does not match the filter value for table cols that have quickFilter set to true . Also checks to see if there is a specified column to apply the filter to - denoted by filterValue being separated by : .
pl_tokens: function ( data , filterValue ) { var filterCol ; filterValue = filterValue . toString ( ) . toLowerCase ( ) . split ( ':' ) ; if ( filterValue . length > 1 ) { filterCol = filterValue [ 0 ] ; filterValue = filterValue [ 1 ] ; } else { filterValue = filterValue [ 0 ] ; } var filterProperties = [ ] ; //Collect all of the data properties we're going to check for filtering _ . each ( this . cols , function ( <mask> ) { var headerLabel = col . headerLabel ? col . headerLabel . toLowerCase ( ) : '' ; if ( col . quickFilter && ( ! filterCol || headerLabel === filterCol ) ) { filterProperties . push ( col . dataProperty ) ; } } ) ; if ( filterProperties . length ) { //Iterate over the data set and remove items that don't match the filter return _ . filter ( data , function ( item ) { //Use some so that we return as soon as we find a column that matches the value return _ . some ( filterProperties , function ( propName ) { if ( ! item [ propName ] ) { return false ; } if ( filterCol ) { return item [ propName ] . toString ( ) . toLowerCase ( ) === filterValue ; } return item [ propName ] . toString ( ) . toLowerCase ( ) . indexOf ( filterValue ) > - 1 ; } ) ; } ) ; } return data ; }