is there any way we can start the intro.js tour from the step we newly added

89 views Asked by At

Is there any way we can start the intro.js for newly added features only. for new used it will be starting from first setup, but for the user who have already watched till step x for them we can start at from x+1 step.

I tried looking in to documentation but not able to achieve this expected functionality

1

There are 1 answers

0
Kevin L On

I did this by putting the IntroJS code inside a function, and called the function if new features were added to my app.

Something like this:

function hometour2() {

   introJs().setOptions({
   showProgress: true,
   showBullets: false,
   steps: [{
     element: document.querySelector('#newdiv'),
     intro: 'new features....',
     position: 'right'
   }]

   }).start();
}