How to apply custom angular filter formatter in slick-grid custom cell formatter
Suppose I have an angular customer filter formatter that convert the date from one format to another format.
var dateFilter = this.$filter('myDateFilterFormatter')('2006-04-07');
It returns as 4/7/06.
How can I use myDateFilterFormatter in slick-grid custom cell formatter
I have tried this way
this.dateFommatter = function(row, cell, value, columnDef, dataContext){
return "<p>"+ value | myDateFilterFormatter +"</p>";
};
and also try
this.dateFommatter = function(row, cell, value, columnDef, dataContext){
return "<p>"+ this.$filter('myDateFilterFormatter')(value) +"</p>";
};
Both the way ends with error. I am unable to apply custom filter in slick-grid row formatter. Can you please suggest, How can I use custom filter in slick-grid.
Thanks,
Anil Kumar