make column data as hyperlink (dataTable JQUERY)

后端 未结 3 439
终归单人心
终归单人心 2020-12-08 07:20

I am trying to make a column as hyperlink with datatable but no success.

function successCallback(responseObj){

  $(document).ready(function() {
             


        
3条回答
  •  悲哀的现实
    2020-12-08 07:44

        $('#example').dataTable( {
      "columnDefs": [ {
        "targets": 0,
        "data": "download_link",
        "render": function ( data, type, full, meta ) {
          return 'Download';
        }
      } ]
    } );
    

    From the documentation. It is quite clear and straightforward to me, what is it specifically that you do do not understand? What errors do you see?

    For a more complete example, see here

提交回复
热议问题