I'm trying to format a cell and nothing is working. The documentation seems to be a little vague here. I think I need to use the templates key on the options, right? It seems nothing I put in there causes any change on the table. I used the example right out of the docs but it's not working. Is there another example of how to do this somewhere?
I have tried changing the templates key from edit to amount, thinking it would override the value in the amount column. I've also tried adding 'edit' to the columns array in the data. Seems neither one has any effect. Am I doing it wrong? I'm simply trying to add {{ var | currency }} formatting to one of my cells.
I'm trying to format a cell and nothing is working. The documentation seems to be a little vague here. I think I need to use the
templates
key on the options, right? It seems nothing I put in there causes any change on the table. I used the example right out of the docs but it's not working. Is there another example of how to do this somewhere?Here is some of the relevant code:
then on the $vm:
I have tried changing the templates key from edit to amount, thinking it would override the value in the amount column. I've also tried adding 'edit' to the columns array in the data. Seems neither one has any effect. Am I doing it wrong? I'm simply trying to add {{ var | currency }} formatting to one of my cells.