blog/typed-mat-cell-def #19
Replies: 8 comments
-
Awesome advice. Thank you! 😊 |
Beta Was this translation helpful? Give feedback.
-
Just the thing I was looking for. Thanks :) |
Beta Was this translation helpful? Give feedback.
-
Could a PR be opened to fix this for the official |
Beta Was this translation helpful? Give feedback.
-
Thx for the article, great idea 👍 Here is an adjusted version using a table reference instead of the data source as input to prevent input changes - table reference should be static, while the data source is changing over time. |
Beta Was this translation helpful? Give feedback.
-
What a useful article, after reading it I finally found a solution on how to strongly type our custom directives that allow defining AgGrid cells and context menus from templates. |
Beta Was this translation helpful? Give feedback.
-
Is there a solution which would only require 1 change per table instead of 1 change per column? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the useful article.
Also, I think @twittwer's way of using the table reference is a good idea :) |
Beta Was this translation helpful? Give feedback.
-
Here is the combined working code for angular material with standalone components using the table reference suggestion by @twittwer:
Usage:
|
Beta Was this translation helpful? Give feedback.
-
Type-safe MatCellDef | Chau Tran
In this blog post, we will explore how we could provide strong-types for Template Variable in the MatCellDef
https://nartc.me/blog/typed-mat-cell-def
Beta Was this translation helpful? Give feedback.
All reactions