Usage
Signature:
interface DataMapping <K, D, Kin, Din>
Generic Parameters
Parameter Description K Type of output key D Type of output data Kin Type of input key Din Type of input data
Typescript Import Format
//To use this interface, import as below.
import {DataMapping} from "ojs/ojdataprovider";
For additional information visit:
Fields
-
mapFields :(item: Item<Kin, Din>) => Item<K, D>
-
Field mapping function which takes an item and returns the mapped item
-
(nullable) mapFilterCriterion :(filterCriterion: DataFilter.Filter<D>) => DataFilter.Filter<Din>
-
Optional FilterCriterion mapping function which takes filterOperator and returns the mapped filterOperator
-
(nullable) mapSortCriteria :(sortCriteria: Array<SortCriterion<D>>) => Array<SortCriterion<Din>>
-
Optional SortCriterion mapping function which takes sortCriteria and returns the mapped sortCriteria
-
(nullable) unmapFilterCriterion :(filterCriterion: DataFilter.Filter<Din>) => DataFilter.Filter<D>
-
Optional FilterCriterion unmapping function which takes a mapped filterOperator and returns the unmapped filterOperator
-
(nullable) unmapSortCriteria :(sortCriteria: Array<SortCriterion<Din>>) => Array<SortCriterion<D>>
-
Optional SortCriterion unmapping function which takes mapped sortCriteria and returns the unmapped sortCriteria