We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
goToStep
1 parent c666607 commit 6d66010Copy full SHA for 6d66010
intro.js
@@ -93,6 +93,20 @@
93
return false;
94
}
95
96
+ /**
97
+ * Go to specific step of introduction
98
+ *
99
+ * @api private
100
+ * @method _goToStep
101
+ */
102
+ function _goToStep(step) {
103
+ //because steps starts with zero
104
+ this._currentStep = step - 2;
105
+ if(typeof(this._introItems) !== 'undefined') {
106
+ _nextStep.call(this);
107
+ }
108
109
+
110
/**
111
* Go to next step on intro
112
*
@@ -533,6 +547,10 @@
533
547
_introForElement.call(this, this._targetElement);
534
548
return this;
535
549
},
550
+ goToStep: function(step) {
551
+ _goToStep.call(this, step);
552
+ return this;
553
+ },
536
554
exit: function() {
537
555
_exitIntro.call(this, this._targetElement);
538
556
0 commit comments