Apply customer angular filter formatter in slick-grid template.

57 views
Skip to first unread message

Anil Kumar

unread,
Mar 14, 2017, 3:43:13 AM3/14/17
to SlickGrid
Hi All,

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

Reply all
Reply to author
Forward
0 new messages