Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Starting a new tour on the end of a tour not working #349

Open
saikmadana opened this issue Oct 26, 2017 · 0 comments
Open

Starting a new tour on the end of a tour not working #349

saikmadana opened this issue Oct 26, 2017 · 0 comments

Comments

@saikmadana
Copy link

// Take the tour
takeToTour() {
	const tour = {
		id: "cryptex-tour",
		showPrevButton: true,
		i18n: {
			closeTooltip: String.fromCharCode(10060)
		},
		onEnd: () => {
			// Clearing cookies for next tour
			this.hopscotch.endTour(true);
			const endtour = {
				id: "tour-later",
				i18n: {
					closeTooltip: String.fromCharCode(10060)
				},
				steps: [
					{
						title: "Access Ticker:",
						content: "dummy tour"
						target: "later",
						placement: "bottom",
						xOffset: 40
					}
				]
			}
			this.hopscotch.startTour(endtour, 0);
		},
		steps: [
			{
				title: "Price Ticker:",
				content: "You can navigate between markets and select your desired currency"
				target: "marketstour",
				placement: "bottom",
				xOffset: 40,
				delay: 300
			},
			{
				title: "Balances & Wallets:",
				content: "You have a separate wallet for each currency"
				target: "balancewallettour",
				placement: "bottom",
				xOffset: 40
			},
			{
				title: "Order Form:",
				content: "Order form gives you the number of order types of which market"
				target: "orderformtour",
				placement: "right",
				yOffset: 30
			}
		]
	};
	this.hopscotch.startTour(tour, 0);
}

In the above code, I am trying to invoke another hopscotch tour after finishing the first tour. But it is not starting the next tour. Help me know where I went wrong.

Thank you...

@saikmadana saikmadana changed the title Starting new tour on the end of a tour not initialising Starting a new tour on the end of a tour not working Oct 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant