0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Nuxt.js(Nuxt3)で tourguide-js(サイトツアーを行うライブラリ)を使う方法

Posted at

Nuxt.js(Nuxt3)でサイトツアー機能を利用する方法について

  • 今回は以下の環境で作業を実施

    • Nuxt.jsバージョン:3.0.0
    • tourguide-jsバージョン:0.0.7
  • セットアップ方法

    • npm i @sjmc11/tourguidejs
  • コーディング例

    <template>
        <div data-tg-tour="hogehoge"></div>
    </template>
    
    <script setup>
    import "@sjmc11/tourguidejs/src/scss/tour.scss"
    import {TourGuideClient} from "@sjmc11/tourguidejs/src/Tour"
    
    onMounted(()=>{
      const tg = new TourGuideClient();
      tg.start()    
    })
    </script>
    

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?