I have a situation where I have a tour containing eleven steps.
At each step, the pop-up window contains the buttons "Prev", "Next", "End Tour". Instead of using the “End Tour” to “skip,” I try to skip all the steps and go to step 11, but I can't get it to work.
steps: [
{
element: "#mobile",
title: "Mobile Number",
content: "Click ‘Next’ to view the next search field, Click ‘Previous’ to view the previous search field and click ‘skip’ to select End result.",
placement: "right",
backdrop: true,
orphan: true,
template: function (step) {
return "<div class='popover tour'><div class='arrow'></div><h3 class='popover-title'></h3><div class='popover-content'></div><div class='popover-navigation'><button class='btn btn-xs btn-pink' data-role='prev'>« Prev</button><span> </span><button class='btn btn-xs btn-danger' data-role='next'>Next »</button><span> </span><button class='btn btn-xs btn-success' data-role='skip'>Skip</button> </div> </nav> </div>"
},
onNext: function () {
dir = 'next';
},
onPrev: function () {
},
onShown: function () {
}
}
]
Here I use the data role as "skip". How can I use this as a function similar to the functions onShow (), onEnd (), etc.
I tried using the goTo (i) method.
source
share