Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/docs/intro/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permalink: /intro/options/
- `doneLabel`: Done button label
- `hidePrev`: Hide previous button in the first step? Otherwise, it will be disabled button.
- `hideNext`: Hide next button in the last step? Otherwise, it will be disabled button.
- `hideSkip`: Hide the skip button.
- `tooltipPosition`: Default tooltip position
- `tooltipClass`: Adding CSS class to all tooltips
- `highlightClass`: Additional CSS class for the helperLayer
Expand Down
10 changes: 10 additions & 0 deletions src/core/showElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,16 @@ export default function _showElement(targetElement) {
_disableInteraction.call(self);
}

// hide skip button
if (this._options.hideSkip === true) {
if (
typeof skipTooltipButton !== "undefined" &&
skipTooltipButton !== null
) {
skipTooltipButton.className = "".concat("introjs-skipbutton introjs-hidden");
}
}

// when it's the first step of tour
if (this._currentStep === 0 && this._introItems.length > 1) {
if (
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function IntroJs(obj) {
hidePrev: false,
/* Hide next button in the last step? Otherwise, it will be disabled button (note: this will also hide the "Done" button) */
hideNext: false,
/* Hide the skip button */
hideSkip: false,
/* Change the Next button to Done in the last step of the intro? otherwise, it will render a disabled button */
nextToDone: true,
/* Default tooltip box position */
Expand Down