rintrojs icon indicating copy to clipboard operation
rintrojs copied to clipboard

Refresh DOM

Open jdonnell01 opened this issue 4 years ago • 1 comments

Hello,

I am using rintrojs with my R Shiny application and there are DOM elements that appear based on user selections. I am able to simulate the user clicks during the intro, however the intro fails to navigate to the newly created elements. When I close the intro, re-open, and go through the steps again rintrojs is able to now navigate to the new elements (I would guess that a snapshot of the DOM is captured when the intro begins). I attempted to call a javascript function that runs introJs().refresh() (https://introjs.com/docs/hints/api/#introjsrefresh) when a step is triggered, however this did not work. Is there a function within this API that refreshes the DOM?

Thank you

jdonnell01 avatar May 08 '20 16:05 jdonnell01

Yeah dynamic content and intro.js are hard to work with. I honestly wasn't aware of the refresh function in intro.js

If you can find a way to use the refresh function with dynamic content in a vanilla javascript example (ie don't use Shiny) there is a good chance we can make it work with Shiny and rintrojs

carlganz avatar May 08 '20 16:05 carlganz