onMouseUp (event)

시트에서 눌려진 마우스 버튼이 올라올 때 호출되는 이벤트로, onMouseDown 뒤에 발생합니다.
1(true)를 리턴 시 onMouseUp의 기본 동작을 막습니다.
인자 row, col, x, y는 셀이 아닌 곳을 누를 경우 undefined 또는 null이 될 수 있습니다(ex 셀 테두리).

Syntax

    onMouseUp : function(paramObject) {

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

Parameters

Name Type Description
sheet object 시트 객체
row object 마우스로 누른 셀의 데이터 로우 객체
col string 마우스로 누른 셀의 열이름
x number 셀 내에서 마우스로 누른 위치의 x좌표
y number 셀 내에서 마우스로 누른 위치의 y좌표
event object javascript 마우스 이벤트 객체

Return

boolean

Example

options.Events = {
    onMouseUp:function(evtParam){
        // 눌린 열 확인
        if (evtParam.row && evtParam.col) alert(sheet.getRowIndex(evtParam.row) + "행 " + sheet.getColIndex(evtParam.col) + "열이 눌렸습니다.");
    }
}

Read More

Since

product version desc
core 8.0.0.0 기능 추가