EragonJ / Trip.js

🚀 Trip.js is a plugin that can help you customize a tutorial trip easily with more flexibilities.

Home Page:https://eragonj.github.io/Trip.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to provide global properties?

bfarrgaynor opened this issue · comments

I would like to set a delay as a global setting and I can see that there is a delay property. But there is no example of how you want these global properties passed in?

Can you update your documentation with at least one example of how to pass in a global property?

eg: 
  var tripToChangePosition = new Trip({delay:4000???}, [
	  
		{ sel : jQuery("#floatingAddress"), content : "Enter your address here to start", position : "s" },
		{ sel : jQuery("#serviceSelector"), content : "Then choose your services here", position : "w" }
		
	  ], {
	  
	  });

Nvm I'm an idiot - I found them at the bottom of the web docs. Sorry!

In case anyone finds this:

 var tripToChangePosition = new Trip([
	  
		{ sel : jQuery("#floatingAddress"), content : "Enter your address here to start", position : "s" },
		{ sel : jQuery("#serviceSelector"), content : "Then choose your services here", position : "w" }
		
	  ], {
	  	delay:4000
	  });
	  ```