Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouping #52

Open
justinmasse opened this issue Dec 1, 2016 · 2 comments
Open

Grouping #52

justinmasse opened this issue Dec 1, 2016 · 2 comments

Comments

@justinmasse
Copy link

Is there anyway to provide 'grouping' to the xlsx? Allowing collapse and expand behavior.

@justinmasse
Copy link
Author

For example.
image

@st-sloth
Copy link

st-sloth commented Dec 2, 2016

As with freezing (#51), I started working on it, however haven't yet opened a PR because I'd prefer for the freezing one to resolve first. But I need both features in production so there is branch that has both, that you too can use.
Currently this branch doesn't have documentation on row grouping and just uses ws['!rows'] which is an array of objects, and maps all the properties from the objects to xml attributes of row elements. And the attribute you need is outlineLevel as in

ws['!rows'] = [
  undefined,
  { outlineLevel: 1},
  { outlineLevel: 2},
  { outlineLevel: 2},
  { outlineLevel: 1}
];

@st-sloth st-sloth mentioned this issue Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants