Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated collapse/expand sections #6

Open
arrteme opened this issue Oct 17, 2016 · 1 comment
Open

Animated collapse/expand sections #6

arrteme opened this issue Oct 17, 2016 · 1 comment

Comments

@arrteme
Copy link

arrteme commented Oct 17, 2016

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

@bealex
Copy link
Owner

bealex commented Oct 17, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants