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

add option to auto continue after event is fired #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zodern
Copy link
Collaborator

@zodern zodern commented Oct 13, 2015

This allows the tutorial to go to the next step immediately after the event is fired instead of waiting for next to be clicked.

I added an optional autoContinue option to step.require.

tutorialSteps = [
  {
    template: Template.tutorial_step1,
    onLoad: function() { console.log("The tutorial has started!"); }
  },
  {
    template: Template.tutorial_step2,
    spot: ".myElement, .otherElement",
    require: {
      event: "something-emitted",
      validator: function(args) { ... }
      autoContinue: true
    }
  }
];

WebStorm added a bunch of it's files, so I added .idea/* to .gitignore.

@mizzao
Copy link
Member

mizzao commented Jun 29, 2016

Hi @zodern - I apologize for the extremely long delay on this.

I have been too busy to maintain this project effectively, so I gave you commit access to make any changes you'd like. It would be nice to follow the style used by the rest of the code and add some tests to this patch if possible.

If you'd like permission to publish the package to Meteor as well, please send me your Meteor developer username.

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

Successfully merging this pull request may close these issues.

2 participants