[]
리포트 시트에서 셀의 확장 방향이 "None"이 아닌 경우, Static 셀은 동일한 행에서 확장됩니다. 이때 셀이 확장될 수 있는지를 제어하려면 autoExpand 속성을 사용할 수 있습니다.
autoExpand 설정은 Static, List, Group, Summary 셀에 적용되며, 템프릿 시트에서 확장을 설정하려면 setTemplateCell 메서드에서 autoExpand 속성을 구성해야 합니다.
autoExpand 속성은 다음과 같은 값을 가질 수 있습니다:
Horizontal: 셀은 열 개수만 확장하며, 행 개수는 템플릿 셀과 동일하게 유지됩니다.
Vertical: 셀은 행 개수만 확장하며, 열 개수는 템플릿 셀과 동일하게 유지됩니다.
None: 셀은 행과 열 개수 모두 템플릿 셀과 동일하게 유지됩니다.
Both: 셀은 행과 열 개수를 모두 확장합니다. (기본값)
다음은 서로 다른 autoExpand 설정을 적용하는 코드 예제입니다:
Ask ChatGPT
// 셀의 autoExpand를 Horizontal로 설정
templateSheet.setTemplateCell(0, 0, {
autoExpand: 'Horizontal',
});
// 셀의 autoExpand를 Vertical로 설정
templateSheet.setTemplateCell(0, 0, {
autoExpand: 'Vertical',
});
// 셀의 autoExpand를 None으로 설정
templateSheet.setTemplateCell(0, 0, {
autoExpand: 'None',
});
// 셀의 autoExpand를 Both로 설정
templateSheet.setTemplateCell(0, 0, {
autoExpand: 'Both',
});