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.
1 parent d41a105 commit 55b29e4Copy full SHA for 55b29e4
src/publics.js
@@ -187,3 +187,18 @@ $.fn.steps.skip = function (count)
187
{
188
throw new Error("Not yet implemented!");
189
};
190
+
191
+/**
192
+ * Sets the current step index.
193
+ *
194
+ * @method setCurrentIndex
195
+ * @param index {Integer} The new step index (zero-based)
196
+ * @return {Boolean} Indicates whether the action executed
197
+ **/
198
+$.fn.steps.setCurrentIndex = function (index)
199
+{
200
+ var options = getOptions(this),
201
+ state = getState(this);
202
203
+ return goToStep(this, options, state, index);
204
+};
0 commit comments