Hi, i would like to add a custom pre/post tag to my columns, but when i do so it overwrites it with the number formatting.
So i’d like for columntype= numberinput columns that i can set a pre/post tag and a cellsformat as well. i set the posttag on cellrenderer function.
For demonstration : let’s say this is my column’s row value : 20 with cellsformat : d3 and i set a pretag : ‘$:’ and a posttag : ‘!!’. with my current code i got only the formatted value like 20.000 instead of ‘$:20.000!!’ Is it possible to overwrite the cellsformat after it has formatted the value ?
This is the cellrenderer:
cellsrenderer = function (row, cell, value, defaulthtml) {
var ret = defaulthtml.replace(value, pretag + value +posttag);
return ret;
}
I need to achive this only for numberinput columns.
Thank you in advance!