bootstrap-tour
bootstrap-tour copied to clipboard
How to Remove a Step Or Clear All Steps?
I wanna remove some steps or clear all steps.thanks
There is no method in library for it however you can use this one
Tour.prototype.deleteSteps = function() { this._current = 0; this._removeState('current_step'); this._removeState('end'); this._removeState('redirect_to'); this._options.steps.length = 0; return this; };
This will remove all elements.
Thanks @aslamkhan669 I wanted to do the same.