usablica / intro.js

Lightweight, user-friendly onboarding tour library
http://introjs.com
Other
22.8k stars 2.59k forks source link

[Question] How to use it with vue.js? #1419

Closed Jumborner closed 3 years ago

Jumborner commented 3 years ago

Hi, I want to use intro.js in my vue project running on vite but I cannot figure out how to do this. I have seen there there was a vue-introjs package, but that one is currently archived and made for vue cli + webpack.

suryarajendhran commented 3 years ago

I think you can initialise introJs inside your mounted block and add the data tags to your elements. Bind the introJs.start() call to a 'start demo' button.

Jumborner commented 3 years ago

I think you can initialise introJs inside your mounted block and add the data tags to your elements. Bind the introJs.start() call to a 'start demo' button.

Did something similar, seems to work.