filamentgroup / tablesaw

A group of plugins for responsive tables.
MIT License
5.48k stars 434 forks source link

Columns priority - right to left #273

Closed CCvinc closed 7 years ago

CCvinc commented 7 years ago

If a have the following table structure

A B C D E

A is the default column.

Currently: when we are swiping the table, it is hidding E, then D, then C. And at the end, we only have A B

It is possible to change the swipe order without changing the table columns order? I mean : first hide B, then C, then D. And at the end we only have A E (and the swipe gesture only propose a "left" column change)

Thanks a lot! Best regards.

zachleat commented 7 years ago

Can you add a more verbose description of what you want?

Maybe using steps like this?

  1. A B C D _
  2. swipe right
  3. A _ C D E

I’m not quite sure what you’re asking.

CCvinc commented 7 years ago

Hello zachleat, First of all i want to say you THANK YOU for your great job and for your quick help!

The current version is doing :

  1. A B C D E
  2. A B C D _
  3. A B _

What i'm looking for is :

  1. A B C D E
  2. A _ C D E
  3. A _ E
zachleat commented 7 years ago

Thanks for the thanks!

Hmm, this request is kinda warping my brain a little bit. I still don’t think I quite have enough information to evaluate what you’re asking.

The columns that show or hide have a very intentional spatial relationship, so the user relates the swipe direction to the navigation. If they swiped right and the next column to the right wasn’t shown, it would break that relationship. We kind of break that now with persistent columns. I don’t think we want to break it further.

Sorry :(

If you think I’m still misunderstanding your request, please elaborate further!

DanielRuf commented 6 years ago

Could be useful to have this feature. I guess we just need simple for-loops instead of the each commands or track persisted and non-persisted and check if they are allowed to be hidden.