projects/i-components/src/lib/pipes/unboundColumnDataContext.pipe.ts
Pipe to generate the UnboundColumnDataContext instance
Name | unboundColumnDataContextPipe |
Pure | true |
transform |
transform(rowData: any, key: any, value: any)
|
Returns :
any
|
import { Pipe, PipeTransform } from '@angular/core';
import { UnboundColumnDataContext } from '@mobilize/wms-framework';
/**
* Pipe to generate the UnboundColumnDataContext instance
*/
@Pipe({
name: 'unboundColumnDataContextPipe',
pure: true,
})
export class UnboundColumnDataContextPipe implements PipeTransform {
// eslint-disable-next-line @typescript-eslint/ban-types
transform(rowData: any, key: any, value: any): any {
return rowData === undefined
? undefined
: new UnboundColumnDataContext(key, rowData, value);
}
}