Datatables make link in row records


Here is a quick snippet to make record as links in Datatables :

1
2
3
4
5
6
7
8
columns : [
              {
                "mRender": function ( data, type, full ) {
                 // ‘full’ is the row’s data object, and ‘data’ is this column’s data
                 // e.g. ‘full[0]’ is the comic id, and ‘data’ is the comic title
                 return ‘<a href="’ + full[‘uuid’] + ‘">’ + full[‘created_by’]+ ‘</a>’;
               }
];

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.