Link to editables

Link to editables

michelekmichelek Posts: 24Questions: 5Answers: 0

I would like to insert link to my editables it's possible?

columns: [    
  { data: '<a href=\"preview.php?ID=1\">'+persone.notti_fuori+'</a>', className: "dt-center" },

Replies

  • allanallan Posts: 63,685Questions: 1Answers: 10,498 Site admin

    Yes - use columns.render as a function.

    Allan

  • michelekmichelek Posts: 24Questions: 5Answers: 0
    edited November 2015

    Wow Thanks, i'm starting to understand a litlle

    $('#example').dataTable( {
      "columnDefs": [ {
        "targets": 0,
        "data": "download_link",
        "render": function ( data, type, full, meta ) {
          return '<a href="'+data+'">Download</a>';
        }
      } ]
    } );
    
This discussion has been closed.