Getting Started
Usages
Columns
API References
ngx-panemu-table / Class

CellFormatterPipe

Decorators:@Pipe
Implements:PipeTransform

Used to wrap Column.formatter method to get the benefit of angular pipe memoization. It increase the table rendering performance.

The content of the cell will only be updated if any of the value, row, column or formatter parameters are changed.

Methods

transform()

implements PipeTransform

The content of the cell will only be updated if any of the value, row, column or formatter parameters are changed. The formatter parameter is actually from the column. However, if the formatter parameter is not included in the arguments, changing the formatter won't trigger cell refresh.

Presentation
transform(val: any, row?: any, column?: PropertyColumn<any> | undefined, formatter?: CellFormatter | undefined, valueMap?: any): any;
Parameters
NameTypeDescription
val
any
row
any
column
PropertyColumn<any> | undefined
formatter
CellFormatter | undefined

formatter from PropertyColumn.formatter. It is included to trigger cell refresh when formatter is changed.

valueMap
any
Returns

any