AwesomeTableAnimationCalculator icon indicating copy to clipboard operation
AwesomeTableAnimationCalculator copied to clipboard

Animated collapse/expand sections

Open arrteme opened this issue 8 years ago • 1 comments

We are using AwesomeTableAnimationCalculator in our app, and we are happy with it so far. Except that we are now facing an issue where we need to fold/unfold sections (e.g. for those sections to be able holding 0 rows); I assume for this moment it is not possible to have a section model with no cell models associated with it? Since Section Models are being built from Cell Models.

I haven't found a solution to cleanly build a mechanism for such collapse/expand feature. Regarding this, I wonder if you might consider adding this feature, or would it be better if we forked and done this by ourselves?

Thanks in advance

arrteme avatar Oct 17 '16 14:10 arrteme

Thanks for the kind words. That is an interesting question.

The simplest solution that comes to my mind is this:

  • you insert fake cell models. One per folded section
  • after the animation calculation, you show these cells with zero height.

It is not the perfect solution, but is looks like a possible one before I'll be able to introduce needed changes to the calculator itself. And it should play well with calculator engine.

bealex avatar Oct 17 '16 15:10 bealex