TurkServer / meteor-tutorials

Create super cool animated tutorials for your Meteor app.
MIT License
103 stars 21 forks source link

add option to auto continue after event is fired #13

Open zodern opened 9 years ago

zodern commented 9 years ago

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 commented 8 years ago

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.