-
-
Notifications
You must be signed in to change notification settings - Fork 39
collapseRowGroup
Julian Halliwell edited this page Apr 15, 2025
·
1 revision
Visually collapses a set of previously grouped rows. Unliked hidden rows, collapsed rows can be expanded easily by the user in the UI.
collapseRowGroup( workbook, row)
-
workbook
spreadsheet object -
row
numeric: any row in the group
Chainable? Yes.
spreadsheet = New spreadsheet();
workbook = spreadsheet.newXlsx();
rowData = [ "column1", "column2", "column3", "column4" ];
spreadsheet
.addRows( workbook, [ rowData, rowData, rowData, rowData ] );//add a 4x4 dataset
.groupRows( workbook, 2, 3 );// group rows 2-3
.collapseRowGroup( workbook, 2 ); //the rows 2 and 3 will now be collapsed: hidden but expandable in the UI