pat310 / quick-pivot

Quickly format data to create a pivot table
https://www.npmjs.com/package/quick-pivot
MIT License
63 stars 21 forks source link

Add pivot toggle method for expanding / collapsing groups #27

Closed turnerniles closed 7 years ago

turnerniles commented 7 years ago

In addition to pivot.expand() and pivot.collapse() methods, could we add a pivot.toggle() that either expands or collapses based on that groups current state (if it is collapsed, expand it and if it's expanded, collapse it).

pat310 commented 7 years ago

Closed in #31