시트의 크기가 변경될 때 발생합니다.
onResize : function(paramObject) {
}
or
sheet.bind("onResize" , function(paramObject) {});
Name | Type | Description |
---|---|---|
sheet | object |
시트 객체 |
oldwidth | number |
크기 변경 전 너비 |
oldheight | number |
크기 변경 전 높이 |
width | number |
크기 변경 후 너비 |
height | number |
크기 변경 후 높이 |
none
options.Events = {
onResize:function(evtParam){
//시트크기가 너무 작아지면 일부 열을 감추자
if (evtParam.sheet.getBodyWidth(1) < 1200) {
evtParam.sheet.setAttribute(null , "SN", "Visible", 0, 0);
evtParam.sheet.setAttribute(null , "ProductID", "Visible", 0, 0);
evtParam.sheet.setAttribute(null , "CustomerID", "Visible", 0, 0);
} else {
evtParam.sheet.setAttribute(null , "SN", "Visible", 0, 1);
evtParam.sheet.setAttribute(null , "ProductID", "Visible", 0, 1);
evtParam.sheet.setAttribute(null , "CustomerID", "Visible", 0, 1);
}
evtParam.sheet.rerender();
}
}
product | version | desc |
---|---|---|
core | 8.0.0.0 | 기능 추가 |