Skip to content

Commit

Permalink
chore(docs): document clearMovePrevented method
Browse files Browse the repository at this point in the history
  • Loading branch information
josias-r committed Mar 20, 2023
1 parent 5bba583 commit df21ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ <h4>API Methods</h4>
// perform some asynchronous task and manually move to next step
boarding.preventMove();
boarding.continue(); // Continue the move that was prevented using preventMove
boarding.clearMovePrevented(); // preventMove will just "pause" the tour. If you want to clear that paused state, you can call clearMovePrevented, to clean up that paused state. You should do this, when your logic has a condition where it never calls continue

// Gets the currently highlighted element on screen
const activeElement = boarding.getHighlightedElement();
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ boarding.hasPreviousStep(); // Checks if there is previous step to move to
// perform some asynchronous task and manually move to next step
boarding.preventMove();
boarding.continue(); // Continue the move that was prevented using preventMove
boarding.clearMovePrevented(); // preventMove will just "pause" the tour. If you want to clear that paused state, you can call clearMovePrevented, to clean up that paused state. You should do this, when your logic has a condition where it never calls continue

// Highlights the element using query selector or the step definition
boarding.highlight(string | stepDefinition);
Expand Down

0 comments on commit df21ab8

Please sign in to comment.