var grid = hg.hgrid({
ini: {
data: gridData,
selector: "#grid",
width: "780px",
height: "490px",
selectMode: "multiCell",
theme: "default"
},
title: {
text: "스마트폰 판매 목록",
setting: false
},
panel: {
visible: true,
text: "2015년 스마트폰 판매 목록입니다."
},
header: {
height: ["40px"]
},
rows: {
height: "30px",
rownum: true
},
// 속성 기술
cols: [
{ name: "이름", id: "name", width: "80px" },
{ name: "주소", id: "address", width: "200px" },
{ name: "제품", id: "product", width: "100px" },
{ name: "색상", id: "color", width: "80px" },
{ name: "수량", id: "qty", width: "50px" },
{ name: "가격", id: "price", width: "100px" },
{ name: "구입일", id: "purchaseDate", width: "100px" }
]
});