File

projects/i-components/src/lib/pipes/unboundColumnDataContext.pipe.ts

Description

Pipe to generate the UnboundColumnDataContext instance

Metadata

Name unboundColumnDataContextPipe
Pure true

Methods

transform
transform(rowData: any, key: any, value: any)
Parameters :
Name Type Optional
rowData any No
key any No
value any No
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);
  }
}

result-matching ""

    No results matching ""