Webix datatable

by ivos

HTML

<link rel="stylesheet" href="//cdn.webix.com/edge/webix.css">
<script src="//cdn.webix.com/edge/webix.js"></script>
<html>

  <head>

  </head>

  <body>
    <div id="dt"></div>
  </body>

</html>

JavaScript

var tableData = [
  { id:1, title:"The Shawshank Redemption"},
	{ id:2, title:"The Godfather"}

];

webix.ready(function() {
  var grid = webix.ui({
    container: 'dt',
    view: 'datatable',
    id: 'datatable1',
    columns: [
    	{ id: 'test1', header: "Test1"},
      { id: 'title', header: "Title", width: 300 }
    ],
    autoheight: true,
    autowidth: true,
    data: tableData
  });
});