shlomiassaf / ngrid

A angular grid for the enterprise
https://shlomiassaf.github.io/ngrid
MIT License
241 stars 40 forks source link

Transformation function is not receiving a valid value to transform #158

Closed jean-merelis closed 3 years ago

jean-merelis commented 3 years ago

What is the expected behavior?

The function should receive the value in the first argument

What is the current behavior?

The function is receiving undefined value in the first argument

What are the steps to reproduce?

https://stackblitz.com/edit/pebula-ngrid-starter-m9i6cp?file=app/app.component.ts

Which versions of Angular, CDK, Material, NGrid, OS, TypeScript, browsers are affected?

Angular 11 NGrid 3.0.0

jean-merelis commented 3 years ago

I think "this" should be "col" in this function

https://github.com/shlomiassaf/ngrid/blob/0718af8b9e6d24468fb6a95adf891653f650bc74/libs/ngrid/core/src/lib/utils/column.ts#L30-L35

shlomiassaf commented 3 years ago

Released in 3.0.1, thank you