natergj / excel4node

Node module to allow for easy Excel file creation
MIT License
1.38k stars 215 forks source link

Multiple level of row grouping #231

Open lauriebonete opened 6 years ago

lauriebonete commented 6 years ago

I'm using the row group API, as shown below, it works great if I only need 1 level of group. Tried grouping rows within an already grouped row but it doesn't collapse.

worksheet.row(i).group(1, true);

Is it possible to do multiple level of row grouping as shown on the attached link

If it is already possible, can you please give some guides.

natergj commented 6 years ago

Yes, it is possible to create multiple levels of groupings. Here is a basic gist to demonstrate https://gist.github.com/natergj/b548fe8d2ea00c5b9fa94597c2cf9fd2