Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- di
- Excel
- 구글
- MSSQL
- Generic
- SQL
- It
- jQuery
- JavaScript
- asp.net mvc
- 디자인패턴
- IT관련
- cookie
- 제네릭
- angularJS
- ADO.NET
- iframe
- XML
- 동적dom
- mvc
- 클래스
- IT 관련
- ASP.NET
- csv
- 메소드
- delegate
- c#
- LINQ
- Today
- 444
- Total
- 1,439,385
심재운 블로그
clusterize.js Tiny vanilla Js 플러그인, 대용량 data를 쉽게 table 형태로 보여줌. 본문
프로그래밍/JavaScript
clusterize.js Tiny vanilla Js 플러그인, 대용량 data를 쉽게 table 형태로 보여줌.
재우니 2019. 9. 2. 01:39https://codepen.io/thdoan/pen/NgqmVG
Tiny vanilla JS plugin to display large data sets easily
Tiny vanilla Js 플러그인 라고 불리며, 대용량의 데이터를 쉽게 table 태그에 보여줍니다. jQuery 를 사용하지 않아 느리진 않은듯 싶습니다. 공식사이트 주소는 https://github.com/NeXTs/Clusterize.js 입니다.
<style>
body {
font: normal 16px/1.2 Calibri, sans-serif;
}
.clusterize table {
width: 100%;
border: 1px solid #000;
border-collapse: collapse;
border-spacing: 0;
}
.clusterize td {
border: 1px solid #000;
}
</style>
<p>Try dragging the scrollbar.</p>
<h3>text = fast</h3>
<div class="clusterize">
<div id="scroll-area1" class="clusterize-scroll">
<table>
<tbody id="content-area1" class="clusterize-content">
</tbody>
</table>
</div>
</div>
<h3>input = slow</h3>
<div class="clusterize">
<div id="scroll-area2" class="clusterize-scroll">
<table>
<tbody id="content-area2" class="clusterize-content">
</tbody>
</table>
</div>
</div>
<script src="./clusterize.min.js"></script>
<script>
var aRows1 = [];
for (var i=1; i<5001; ++i) {
aRows1.push('<tr><td>input</td><td>input</td><td>input</td><td>input</td><td>input</td></tr>');
}
var clusterize1 = new Clusterize({
rows: aRows1,
scrollId: 'scroll-area1',
contentId: 'content-area1'
});
var aRows2 = [];
for (var i=1; i<5001; ++i) {
aRows2.push('<tr><td><input></td><td><input></td><td><input></td><td><input></td><td><input></td></tr>');
}
var clusterize2 = new Clusterize({
rows: aRows2,
scrollId: 'scroll-area2',
contentId: 'content-area2'
});
</script>
'프로그래밍 > JavaScript' 카테고리의 다른 글
모바일 웹에서 카카오맵 앱 호출하여 띄울려고 할 경우 (0) | 2019.10.11 |
---|---|
chrome push 의 알림 클릭시 특정 url 이동시키기 (0) | 2019.09.10 |
clusterize.js Tiny vanilla Js 플러그인, 대용량 data를 쉽게 table 형태로 보여줌. (0) | 2019.09.02 |
javascript 로 page 별 timeout 설정하여 로그아웃 강제시키기 (0) | 2019.08.30 |
javascript 숫자 8자리 형식을 년-월-일 형식으로 보이기 (0) | 2019.05.10 |
javascript 로 숫자에 소수점 여부 확인하기 (0) | 2019.01.07 |
0 Comments