Class: FilterFactory

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

Signature:

class FilterFactory<D>

QuickNav


PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.

FilterFactory

Version:
  • 7.1.0
Since:
  • 7.0.0
Module:
  • ojdataprovider

Module usage

See JET Module Loading for an overview of module usage within JET.

Javascript Import Format
define(['ojs/ojdataprovider'], function(dataprovider) {
 // Application should call API on dataprovider.FilterFactory 
})
Typescript Import Format
//To import this class, use the format below.
import {FilterFactory} from "ojs/ojdataprovider";

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.

The class oj.FilterFactory

Methods

getFilter(options: {filterDef: AttributeFilterDef<D> | CompoundFilterDef<D>}) : AttributeFilter<D> | CompoundFilter<D>

PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.

This function is used to pass in a filter definition and returns a filter which can be used with DataProviders. It essentially takes the filter definition and then adds a local filter() function which is required when used for a DataProvider filterCriterion.
Parameters:
Name Type Description
options Object Options for the getFilter() function
Properties
Name Type Description
filterDef AttributeFilterDef | CompoundFilterDef The filter definition for the filter to be returned.
Since:
  • 7.0.0
Returns:
Returns either an AttributeFilter or CompoundFilter depending on whether a AttributeFilterDef or CompoundFilterDef. was passed in.
Type
AttributeFilter | CompoundFilter