carlganz / rintrojs

Wrapper for the Intro.js library
http://rintrojs.carlganz.com/
GNU Affero General Public License v3.0
133 stars 11 forks source link

Change hint postion #51

Open remshaam opened 3 years ago

remshaam commented 3 years ago

Is there a way to change the position of the hint button that appears when data.hint is assigned a value inside introBox()? I see some options in the intro.js package, was wondering if r intro js has implemented this https://introjs.com/docs/hints/attributes

carlganz commented 3 years ago

Good question

As is, you can add it like introBox(data.hint = "blah",data-hintPostion= "middle") notice that you have to use the dash and not a period. I suppose we could add data.hintPosition as a parameter

remshaam commented 3 years ago

@carlganz Thanks for the quick reply, but I am getting an error saying there is an extra comma, meaning it doesn't recognize data-hintPostion?

remshaam commented 3 years ago

@carlganz I had a couple of other questions , so posted it on stackoverflow, with a reproducible example :). https://stackoverflow.com/questions/65988981/shiny-rintrojs-issues-on-multiple-tabs

Any help on would be great and thanks for contributing to the open source package!

etiennebacher commented 3 years ago

@carlganz Thanks for the quick reply, but I am getting an error saying there is an extra comma, meaning it doesn't recognize data-hintPostion?

The formatting wasn't right in the previous answer, try with this (there are backticks around data-hintPosition):

introBox(data.hint = "blah", `data-hintPosition` = "middle")