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

How to clear all items (include sticky) from slider in v8.0.0-b02 #2561

Closed
beeline09 opened this issue Feb 20, 2020 · 4 comments
Closed

How to clear all items (include sticky) from slider in v8.0.0-b02 #2561

beeline09 opened this issue Feb 20, 2020 · 4 comments
Assignees

Comments

@beeline09
Copy link

slider.removeAllItems () only removes PrimaryDrawerItems, but I need everything to be cleared, even stickyDrawerItems

@mikepenz
Copy link
Owner

We will add more convenient methods via: #2560

@mikepenz mikepenz self-assigned this Feb 20, 2020
@beeline09
Copy link
Author

Thanks! But what should I do now? Can you tell me how to remove stickydraweritems separately?

@mikepenz
Copy link
Owner

Sadly this was missed out and is not yet available in the current pre release.

there is only 1 workaround possible :/

sliderView.apply {
    stickyFooterDivider = false
    stickyDrawerItems.clear()
}

(note the apply, and the setting the divider to false or true is needed)

@beeline09
Copy link
Author

Thank you very much! It helps me! Thanks for such a wonderful library!

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

No branches or pull requests

2 participants