Interface: CompoundFilter
Signature: interface CompoundFilter <D> extends CompoundFilterDef <D>, BaseDataFilter <D>
CompoundFilter
Version:
Since:
Module:
Module usage
See JET Module Loading for an overview of module usage within JET.
Typescript Import Format
//To use this interface, import as below. import {CompoundFilter} from "ojs/ojdataprovider";
Generic Parameters
Parameter Description D Type of Data
JET In Typescript
A detailed description of working with JET elements and classes in your typescript project can be found at:
JET Typescript Usage .
Description
Fields
Array of FilterDefs on which to apply the operator
Since:
Inherited From:
Operator to apply for the filter. Valid operators defined in the CompoundFilterOperator union type are the strings:
$and The filters in the criteria array will be AND'd.
$or The filters in the criteria array will be OR'd.
Since:
Inherited From:
Methods
filter(item: D, index?: number, array?: Array<D>): boolean;
Specifies a filter function which has the same signature as the the callback
which is specified for the JS Array.filter():
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
This function will be optionally used by the DataProvider to do local filtering.
This function is required by the DataProvider so that it is possible for DataProvider
implementations to at least do local filtering.
Parameters:
Name
Type
Argument
Description
item
any
The current element being processed in the array.
index
number
<optional>
The index of the current element being processed in the array.
array
Array
<optional>
The array filter was called upon.
Since:
Inherited From:
Returns:
True if the element satisfies the filter.
Type
boolean
Documentation generated by JSDoc 3.4.3 on Fri Aug 14 2020 15:21:29 GMT+0000 (Coordinated Universal Time)