PureJS 행고정이 적용이 안됩니다.
추천0 비추천 0
페이지 정보
작성자 제이크 작성일 2024-02-14 13:16 조회 58회 댓글 0건제품 버전 : 최신버전
컨트롤 이름 : grid
본문
관련링크
app.js 입니다.
onload = function () {
let grid = new wijmo.grid.FlexGrid("#grid", {
itemsSource: getData(),
frozenRows: 2,
frozenColumns: 1
});
function getData() {
var countires = "UK,Japan,Korea,US,Italy".split(",");
data = []
for (var i = 0; i < 200; i++) {
data.push({
id: i,
data: wijmo.DateTime.addDays(new Date(), -Math.random() * 365),
country: countires[i % countires.length],
active: i % 5 != 0,
downloads: Math.round(Math.random() * 200000),
sales: Math.random() * 1000000,
expenses: Math.random() * 50000
})
}
return data
}
}
index.html 입니다.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="grid"></div>
<script src="https://cdn.grapecity.com/wijmo/5.latest/controls/cultures/wijmo.culture.ko.min.js"></script>
<script src="app.js" type="text/javascript"></script>
</body>
</html>
댓글목록
등록된 댓글이 없습니다.