rintrojs icon indicating copy to clipboard operation
rintrojs copied to clipboard

Change hint postion

Open remshaam opened this issue 4 years ago • 4 comments

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

remshaam avatar Jan 31 '21 21:01 remshaam

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

carlganz avatar Jan 31 '21 21:01 carlganz

@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 avatar Jan 31 '21 21:01 remshaam

@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!

remshaam avatar Feb 01 '21 07:02 remshaam

@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")

etiennebacher avatar May 16 '21 15:05 etiennebacher