Hi ALl,
I am using Jquery Datatable to display items in web-part.
I have 3 columns that I am rendering, One is Url. Is it possible to have URl Link clickable.
https://datatables.net/reference/option/columns.render
$('#example').DataTable( {
data: jsonArray,
columns: [
{ title: "Site Url"},
{ title: "UserName" },
{title:"Status"}
]
} ); $('#example').dataTable( {"columnDefs": [ {"targets": 0,"data": "download_link","render": function ( data, type, row, meta ) {
return '<a href="'+data+'">Download</a>';
}
} ]
} );The top is example am looking.
Thanks
Abenet