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

Return next item without stepping #167

Open
mcshaman opened this issue Nov 30, 2014 · 1 comment
Open

Return next item without stepping #167

mcshaman opened this issue Nov 30, 2014 · 1 comment

Comments

@mcshaman
Copy link

It would be great if next and prev methods could be used to return the next and previous steps without stepping. I am currently having to traverse the DOM and check for excludes. I'm surprised this functionality isn't already available.

@sokra
Copy link
Member

sokra commented Jan 9, 2015

Maybe this works:

var activeSlice = $("#jmpress").jmpress("active");
var nextSlice = $("#jmpress").jmpress("fire", "selectNext", activeSlice, {
  stepData: activeSlice.data('stepData')
});

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