시트에서 마우스가 눌려졌을때 호출되는 이벤트입니다.
1(true)
를 리턴 시onMouseDown
의 기본 동작을 막습니다.
인자row, col, x, y
는 셀이 아닌 곳을 누를 경우undefined
또는null
이 될 수 있습니다(ex 셀 테두리).
onMouseDown : function(paramObject) {
}
or
sheet.bind("onMouseDown" , function(paramObject) {});
Name | Type | Description |
---|---|---|
sheet | object |
시트 객체 |
row | object |
마우스로 누른 셀의 데이터 로우 객체 |
col | string |
마우스로 누른 셀의 열이름 |
x | number |
셀 내에서 마우스로 누른 위치의 x좌표 |
y | number |
셀 내에서 마우스로 누른 위치의 y좌표 |
event | object |
javascript 마우스 이벤트 객체 |
boolean
options.Events = {
onMouseDown:function(evtParam){
// 눌린 열 확인
if (evtParam.row && evtParam.col) alert(sheet.getRowIndex(evtParam.row) + "행 " + sheet.getColIndex(evtParam.col)+"열이 눌렸습니다.");
}
}
product | version | desc |
---|---|---|
core | 8.0.0.0 | 기능 추가 |