JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<div style="position:absolute; top: 25px; bottom:0; right:0; left:0;">
<table id="dg" class="easyui-datagrid" data-options="
singleSelect: true">
<thead frozen="true">
<tr>
<th field="f1" width="60">F1</th>
</tr>
</thead>
<thead>
<tr>
<th field="f2" width="180">F2</th>
<th field="f3" width="180">F3</th>
<th field="f4" width="180">F4</th>
<th field="f5" width="180">F5</th>
<th field="f6" width="180">F6</th>
</tr>
</thead>
</table>
</div>
JavaScript
$(window).ready(function () {
$(window).resize(function () {
$('#dg').datagrid('resize');
});
});
var data = [{
f1: "f11",
f2: "f12",
f3: "f13",
f4: "f14",
f5: "f15",
f6: "f16"
}, {
f1: "f21",
f2: "f22",
f3: "f23",
f4: "f24",
f5: "f25",
f6: "f26"
}, {
f1: "f31",
f2: "f32",
f3: "f33",
f4: "f34",
f5: "f35",
f6: "f36"
}, {
f1: "f41",
f2: "f42",
f3: "f43",
f4: "f44",
f5: "f45",
f6: "f46"
}];
$('#dg').datagrid('loadData', data);