시트에서 마우스를 움직일 때 호출되는 이벤트입니다.
1(true)
를 리턴 시onMouseMove
의 기본 동작을 막습니다.
시트 위에서 마우스를 움직일 시 계속 발생하므로 이 이벤트에 많은 설정을 넣으면 느려질 수 있습니다.
인자row, col, x, y
는undefined
또는null
이 될 수 있습니다(ex 셀 테두리).
onMouseMove : function(paramObject) {
}
or
sheet.bind("onMouseMove" , function(paramObject) {});
Name | Type | Description |
---|---|---|
sheet | object |
시트 객체 |
row | object |
마우스 커서가 위치한 셀의 데이터 로우 객체 |
col | string |
마우스 커서가 위치한 열이름 |
x | number |
셀 내에서 마우스로 누른 위치의 x좌표 |
y | number |
셀 내에서 마우스로 누른 위치의 y좌표 |
event | object |
javascript 마우스 이벤트 객체 |
boolean
options.Events = {
onMouseMove:function(evtParam){
if (evtParam.row && evtParam.col) {
console.log("현재 셀 값은 "+ sheet.getValue({row:evtParam.row, col:evtParam.col}));
}
}
}
product | version | desc |
---|---|---|
core | 8.0.0.0 | 기능 추가 |