I use jQuery DataTables in my application.
I want my application be accessed by mobile devices. I implement http://jsfiddle.net/ryanoc/ebRXw/ in my application. But the button can not be displayed. The data look like this : [object Object]
I use render
option in jQuery DataTables to display the button
"render": function(data, type, full ){
var btn = '<a href="' + BASEURL + 'room/edit/'+ data.id +'" class="btn btn-primary btn-xs"><i class="fa fa-edit"></i> Edit</a> ';
return btn;
},
Add the following option to your DataTables initialization code.
See this jsFiddle for code and demonstration.