Class: DataFilter

DataFilter

Members

columnDataFactoryfunction

Function which provide source data factory for specified column.

conditionCollectionConditionCollection

Reference to the instance of {ConditionCollection}.

Methods

filter(){Array}

Filter data based on the conditions collection.

Returns: {Array}

filterByColumn(column, dataSource){Array}

Filter data based on specified column index.

Parameters:
Name Type Description
column Number

Column index.

dataSource Array optional

Data source as array of objects with value and meta keys (e.g. {value: 'foo', meta: {}}).

Returns: {Array} Returns filtered data.