마우스가 시트 내 다른 셀에 들어갈 때마다 호출되는 이벤트이며, 힌트를 화면에 노출하거나 편집모드로 들어갈 때도 호출됩니다.
인자row, col, x, y
는 셀이 아닌 곳을 누를 경우undefined
또는null
이 될 수 있습니다(ex 셀 테두리).
onMouseOver : function(paramObject) {
}
or
sheet.bind("onMouseOver" , function(paramObject) {});
Name | Type | Description |
---|---|---|
sheet | object |
시트 객체 |
row | object |
마우스로 누른 셀의 데이터 로우 객체 |
col | string |
마우스로 누른 셀의 열이름 |
orow | object |
이전에 마우스가 위치했던 셀의 데이터 로우 객체 |
ocol | string |
이전에 마우스가 위치했던 셀의 열이름 |
event | object |
javascript 마우스 이벤트 객체 |
none
options.Events = {
onMouseOver:function(evtParam){
if (evtParam.row && evtParam.col && evtParam.orow && evtParam.ocol) {
console.log("이전 셀 값은 "+ sheet.getValue({row:evtParam.orow, col:evtParam.ocol}));
console.log("현재 셀 값은 "+ sheet.getValue({row:evtParam.row, col:evtParam.col}));
}
}
}
product | version | desc |
---|---|---|
core | 8.0.0.0 | 기능 추가 |