jQuery DataTable test

HTML

<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<link rel="stylesheet" href="https://datatables.net/release-datatables/media/css/jquery.dataTables.css">
<script src="https://datatables.net/release-datatables/media/js/jquery.dataTables.js"></script>
<table id="tbl" > 
</table>

JavaScript

$("#tbl").dataTable({
  columns: [
    {
      title: "name",
      data: "name",
      render: "FunctionName()"
    },
    { title: "number", data: "num" }
  ],
  data: [
    { name: {"FunctionName": function() { return "Hi."; }}, num: 1 },
    { name: {"FunctionName": function(x) { return "Hello, no arguments: " + x; }}, num: 2 }
  ]
});