Ngx-datatable: Reference to row object with prop

Created on 12 Dec 2016  路  2Comments  路  Source: swimlane/ngx-datatable

If I define the columns templates within the html (inline) I can access the row object by using prop="".
However, if I define the columns imperatively with TemplateRef, this trick doesn't work anymore. Is there an alternative way?

Most helpful comment

You mean something like <template let-row="row" let-value="value" swui-datatable-cell-template> ?
Then you can easily access row with row.

All 2 comments

You mean something like <template let-row="row" let-value="value" swui-datatable-cell-template> ?
Then you can easily access row with row.

yeah.. that did the trick.
thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manishsharma1992 picture manishsharma1992  路  39Comments

nitinht1988 picture nitinht1988  路  49Comments

SnakeB picture SnakeB  路  53Comments

Caballerog picture Caballerog  路  67Comments

clemtoy picture clemtoy  路  41Comments