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

Force update of nav scroller, after dynamically changing number of items? #3

Open
muratkemaldar opened this issue Jun 21, 2018 · 1 comment

Comments

@muratkemaldar
Copy link

muratkemaldar commented Jun 21, 2018

Hi!

I am trying to combine this React and I want to populate the items of the nav-scroller dynamically.
I call PriorityNavScroller(); at the very beginning, and then I change the number of items, but the buttons (left and right) don't appear until I resize the window.

How can I tell the priority nav scroller to update itself, after I have changed the number of items?

Kind regards,
Murat

@muratkemaldar muratkemaldar changed the title Force update of nav scroller? Force update of nav scroller, aftr dynamically changing number of items Jun 21, 2018
@muratkemaldar muratkemaldar changed the title Force update of nav scroller, aftr dynamically changing number of items Force update of nav scroller, after dynamically changing number of items Jun 21, 2018
@muratkemaldar muratkemaldar changed the title Force update of nav scroller, after dynamically changing number of items Force update of nav scroller, after dynamically changing number of items? Jun 21, 2018
@NigelOToole
Copy link
Owner

There is currently no update method but adding one should be trivial. I will look into this once I have some time to spare.

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