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

Allow for some sections to be collapsible #48

Open
lmsmartins opened this issue Aug 7, 2017 · 5 comments
Open

Allow for some sections to be collapsible #48

lmsmartins opened this issue Aug 7, 2017 · 5 comments

Comments

@lmsmartins
Copy link

Does this library allow for some sections to be collapsible and others don't? Or do all sections need to be collapsible?

@jeantimex
Copy link
Owner

At the moment, the interface/functionality is limited, we can introduce new features like what you are requesting, thing is how we should design the interface to allow specific sections to be collapsed or expanded.

I think we can introduce a new protocol method like shouldCollapseSection(_ section: int) or something else that will override the "default" mechanism, that way people can control the logic easily. What do you think?

@lmsmartins
Copy link
Author

Sounds great!

@jeantimex
Copy link
Owner

Ok, I will work on it soon.

@talhaqamar
Copy link

talhaqamar commented Mar 13, 2018

I have done it using the library after implementing some custom changes. How i can contribute ?
mar-13-2018 15-24-31

@himanthmaddi
Copy link

himanthmaddi commented May 10, 2018

Oh I also need it. I want to be only one section expandable by default

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

4 participants