onMouseOver (event)

마우스가 시트 내 다른 셀에 들어갈 때마다 호출되는 이벤트이며, 힌트를 화면에 노출하거나 편집모드로 들어갈 때도 호출됩니다.
인자 row, col, x, y는 셀이 아닌 곳을 누를 경우 undefined 또는 null이 될 수 있습니다(ex 셀 테두리).

Syntax

    onMouseOver : function(paramObject) {

    }
or
    sheet.bind("onMouseOver" , function(paramObject) {});

Parameters

Name Type Description
sheet object 시트 객체
row object 마우스로 누른 셀의 데이터 로우 객체
col string 마우스로 누른 셀의 열이름
orow object 이전에 마우스가 위치했던 셀의 데이터 로우 객체
ocol string 이전에 마우스가 위치했던 셀의 열이름
event object javascript 마우스 이벤트 객체

Return

none

Example

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}));
        }
    }
}

Read More

Since

product version desc
core 8.0.0.0 기능 추가