TLIndexPathTools icon indicating copy to clipboard operation
TLIndexPathTools copied to clipboard

TLTreeTableViewController: Keep only one expanded parent (close others)

Open csotiriou opened this issue 9 years ago • 2 comments

In the case of tree table, is there any way to close other parts of the table when opening the current one?

In short is there any way of manually closing other open sections?

csotiriou avatar Feb 17 '16 06:02 csotiriou

When a node N is expanded, you want all nodes that aren't an ancestor N to be collapsed?

I can add an option for that. TLCollapsibleTableViewController already has such an option.

I'd you'd like an unsolicited opinion...in my experience, collapsing and expanding at the same time can result in unexpected excess motion and feel disorienting.

wtmoose avatar Feb 17 '16 15:02 wtmoose

I agree to that myself, it will indeed be disorienting.

However, there are cases where this feature (or lack thereof) is indeed useful.

I will check TLCollapsibleTableViewController's functionality, however, having an option like that in the TLTreeTableViewController will save me a lot of trouble.

Thank you for your response.

csotiriou avatar Feb 18 '16 17:02 csotiriou