사용자가 셀을 마우스로 LongClick에 설정된 시간보다 더 길게 클릭했을 때 호출되는 이벤트입니다.
1(true)
를 리턴 시 클릭에 의한 기본 동작을 막습니다.
onLongClick : function(paramObject) {
}
or
sheet.bind("onLongClick" , function(paramObject) {});
Name | Type | Description |
---|---|---|
sheet | object |
마우스 클릭 이벤트가 발생된 시트 객체 |
row | object |
클릭된 셀의 데이터 로우 객체 |
col | string |
클릭된 셀의 열이름 |
x | number |
셀 내에서 마우스 클릭이 발생한 x좌표 |
y | number |
셀 내에서 마우스 클릭이 발생한 y좌표 |
event | object |
javascript 마우스 이벤트 객체 |
boolean
options.Events = {
onLongClick:function(evtParam){
// 길게 클릭시 현재 시트에서 클릭된 셀의 값을 sheet2에 있는 첫 번째 행의 sFrom열에 복사합니다.
if (evtParam.col == "sCountry") {
sheet2.setValue({row:sheet2.getRowByIndex(1), col:"sFrom", val:sheet.getValue({row:params.row, col:params.col}), render:1});
}
}
}
product | version | desc |
---|---|---|
core | 8.0.0.0 | 기능 추가 |