시트에 새로운 행이 추가된 직후(렌더링 되기전) 호출되는 이벤트입니다.
addRow 메소드 사용시 호출됩니다.
onRowAdd : function(paramObject) {
}
or
sheet.bind("onRowAdd" , function(paramObject) {});
Name | Type | Description |
---|---|---|
sheet | object |
시트 객체 |
row | object |
시트에 추가될 데이터 로우 객체 |
none
options.Events = {
onRowAdd:function(evtParam){
// 행 추가시 여기서 초기값을 설정해줄 수 있습니다.
// 렌더링을 이 이벤트가 일어난 후 하기 때문에 값만 설정해줘도 반영됩니다.
evtParam.row["sTitle" ] = "없음";
evtParam.row["sAudience" ] = 0;
evtParam.row["sPlace" ] = "미정";
}
}
product | version | desc |
---|---|---|
core | 8.0.0.0 | 기능 추가 |