arizona-linguistics / colrc-v2

COLRC version 2.0
5 stars 2 forks source link

Add expand all button #274

Closed chasehult closed 1 year ago

chasehult commented 1 year ago

This adds an expand all button to the three existing tables with expansion.

Screenshot 2023-09-28 at 12 58 44 PM Screenshot 2023-09-28 at 12 58 50 PM

The builtin getAllRowsExpandedProps checkbox doesn't do what we want it to. It doesn't keep state across pages, and it doesn't work for subtables. It also tends to get confused and have checked be collapsed and unchecked be expanded, so I wrote the logic on my own. Please let me know if there's a better way to do this! I feel like I'm passing too many things into the table.

Closes #271

chasehult commented 1 year ago

Drafting to fix changes after sort.

chasehult commented 1 year ago

I am admittedly not super happy with this, but it does work.