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

Simple js to move to navigate between slide? #65

Closed
tart2000 opened this issue Mar 29, 2017 · 6 comments
Closed

Simple js to move to navigate between slide? #65

tart2000 opened this issue Mar 29, 2017 · 6 comments
Labels

Comments

@tart2000
Copy link

Hi!
Is there a simple way to add nextSlide() or goToSlide('x') on a button to navigate between slides?
Thank you

@tart2000 tart2000 changed the title Simple js to move to next slide? Simple js to move to navigate between slide? Mar 29, 2017
@Antonio-Laguna
Copy link
Member

Hey!

There sure is!. Please take a read at our docs. If you find that we expressed ourselves poorly please let us know!

You should be able to do ws.goToSlide(2) or ws.goNext()

@tart2000
Copy link
Author

Thanks for the quick reply!
I just looked into the wiki and components.
I figured the 'technical' would be for 'hard stuff'.
Cheers

@tart2000
Copy link
Author

In case anyone ends up here wondering how to use it.
I just did:
<a href="#" class="button" onClick="ws.goNext()">Next</a>

@sull
Copy link

sull commented Apr 10, 2017

can ws.goToSlide(2) use section IDs instead of index #?

@Antonio-Laguna
Copy link
Member

It can't but it's actually a good idea. Can you open a separate issue @sull?

@sull
Copy link

sull commented Apr 10, 2017

sure

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

No branches or pull requests

3 participants