<!DOCTYPE html>
<html>
  <head>
<link href="https://cdn.datatables.net/v/dt/jq-3.7.0/dt-1.13.8/sc-2.3.0/sl-1.7.0/datatables.min.css" rel="stylesheet">
 
<script src="https://cdn.datatables.net/v/dt/jq-3.7.0/dt-1.13.8/sc-2.3.0/sl-1.7.0/datatables.min.js"></script>
        
    <meta charset=utf-8 />
    <title>DataTables - JS Bin</title>
  </head>
  <body>
    <div class="container">
      <table id="example" class="display nowrap" width="100%">
        <thead>
          <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Age</th>
            <th>Start date</th>
            <th>Salary</th>
          </tr>
        </thead>
        <tfoot>
          <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Age</th>
            <th>Start date</th>
            <th>Salary</th>
          </tr>
        </tfoot>
      </table>
    </div>
  </body>
</html>
 
body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}
 
// noprotect
var data = [];
for (var i=0 ; i<100000 ; i++) {
  data.push([
    i+'-0',
    i+'-1',
    i+'-2',
    i+'-3',
    i+'-4',
    i+'-5'
  ]);
}
var table = new DataTable('#example', {
  deferRender: true,
  scroller: true,
  scrollY: 300,
  data: data,
  select: true
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers