트리나 그룹 사용 시 특정 행을 접거나 펼칩니다.
expand인자로 펼치기, 접기, 토글 동작을 명시하며 기본값(null)은 토글입니다.
boolean setExpandRow(row, col, expand);
| Name | Type | Required | Description |
|---|---|---|---|
| row | object |
필수 | 데이터 로우 객체 |
| col | string |
선택 | 열이름 (default: null) |
| expand | boolean |
선택 | 펼칠지 여부0(false):접기1(true):펼치기null:Toggle (default) |
boolean : 접거나 펼쳐짐 변경 여부
var row = sheet.getFocusedRow();
// 펼치기
sheet.setExpandRow(row, null, true);
// 접기
sheet.setExpandRow(row, null, false);
// 토글 (현재 상태 반대로)
sheet.setExpandRow(row);
// 그룹에서 특정 컬럼 기준 토글
sheet.setExpandRow(row, "GROUPNM");
| product | version | desc |
|---|---|---|
| core | 8.0.0.0 | 기능 추가 |
| core | 8.0.0.5 | expand 인자 추가 및 col 인자 필수에서 선택으로 변경 |