AwesomeTableAnimationCalculator
AwesomeTableAnimationCalculator copied to clipboard
Animated collapse/expand sections
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
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.