How to render column with function AND set filter?

How to render column with function AND set filter?

mrtomtommrtomtom Posts: 7Questions: 4Answers: 0
edited July 2014 in DataTables 1.10

Hi all,

I'm looking to use a function to return customised display data for a row and also set a separate filter? I can't work out how to it? Anyone see what I'm doing wrong?

columnDefs: [
            {
                "targets":0,
                "render":{
                    "display":{
                          function ( data, type, row ) {
                            return "<a ting #" + name['id'n-xs' href='/thefancylink/" + row['id'] + "' ><i class='fa fa-suitcase'><i/> "+anothervar+row['id']+"</a>";
                            }
                    },  
                    "filter": row['id'],
                }
            }
]

Many thanks

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.