EragonJ / Trip.js

🚀 Trip.js is a plugin that can help you customize a tutorial trip easily with more flexibilities.
https://eragonj.github.io/Trip.js/
MIT License
793 stars 111 forks source link

How to provide global properties? #203

Closed bfarrgaynor closed 2 years ago

bfarrgaynor commented 2 years ago

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" }

      ], {

      });
bfarrgaynor commented 2 years ago

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

bfarrgaynor commented 2 years ago

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
      });