最近在做一个给handsontable加pagging的实现
html demo
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div id="parent" style="background-color:red;margin-left:10px;height:100px;width:50px;">
<div id="child1" style="height:300px;width:400px;background-color:pink;overflow:visible;">
<table width="400px" border="1" height="300px">
handsontable
</table>
</div>
<div id="child2" style="height:30px;width:400px;background-color:blue;">
<input type="text" value="pagging" style="float:right" />
</div>
</div>
</body>
</html>
handsontalbe 実装:
<div class="row mt-1">
<div id="table_data" style="position:relative">
<div id="pageControl" style="white-space:nowrap;position:absolute;right:0;bottom:-30px;">
<input type="hidden" id="page" value="1"/>
<input type="hidden" id="maxPage" value="1">
<span id="fromToCount"></span>
<div id="myPaginator" style="vertical-align:bottom;display:inline-block;">
</div>
</div>
</div>
</div>