bootstrap-tour icon indicating copy to clipboard operation
bootstrap-tour copied to clipboard

How to Remove a Step Or Clear All Steps?

Open wuyou201400 opened this issue 6 years ago • 2 comments

I wanna remove some steps or clear all steps.thanks

wuyou201400 avatar Jul 24 '18 08:07 wuyou201400

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.

aslamkhan669 avatar Jul 24 '18 08:07 aslamkhan669

Thanks @aslamkhan669 I wanted to do the same.

gaganhn avatar Mar 20 '19 13:03 gaganhn