Docs: "Transform" - Column Model #46
-
Please describe the feature you would like to request.I have been using the What is the use-case or motivation for this proposal?I think it is a very useful feature and I think people should know it exists. Is there anything else we should know?I don't fully understand what the first argument of the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, thanks for the heads up. The If you're using VSCode or Webstore, you can view it by going to (or peeking) the definitions. /**
* Optional transformer that control the value output from the combination of a column and a row.
* The value returned from this transformer will be returned from `PblColumn.getValue`
*/
transform?: (value: any, row?: any, col?: PblColumn) => any; The first param, value is the value of the cell your are transforming. The 2nd param, row is the entire row. The 3rd param, col is the So if your in column "name"
Now, you wonder, why providing value if you can do First, 2nd, The value is just the value of the cell before it was transformed... that is all. I will add this to the docs sometime soon. |
Beta Was this translation helpful? Give feedback.
-
Document in here |
Beta Was this translation helpful? Give feedback.
Document in here