All Projects → pulsardev → Vue Tour

pulsardev / Vue Tour

Licence: mit
Vue Tour is a lightweight, simple and customizable guided tour plugin for use with Vue.js. It provides a quick and easy way to guide your users through your application.

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Labels

Projects that are alternatives of or similar to Vue Tour

GuideChimp
Create interactive guided product tours in minutes with the most non-technical friendly, lightweight and extendable library.
Stars: ✭ 138 (-92.44%)
Mutual labels:  tour
Tooltip Sequence
A simple step by step tooltip helper for any site
Stars: ✭ 287 (-84.28%)
Mutual labels:  tour
Swiftyoverlay
Show overlay and info on app components
Stars: ✭ 63 (-96.55%)
Mutual labels:  tour
telemachy
Easy guided tours for Angular apps
Stars: ✭ 42 (-97.7%)
Mutual labels:  tour
ngx-ui-tour
✈️ UI tour for Angular 9+ apps
Stars: ✭ 36 (-98.03%)
Mutual labels:  tour
Intro.js
Lightweight, user-friendly onboarding tour library
Stars: ✭ 20,826 (+1040.53%)
Mutual labels:  tour
guide
A new feature guide component by react 🧭
Stars: ✭ 597 (-67.31%)
Mutual labels:  tour
Shepherd
Guide your users through a tour of your app
Stars: ✭ 9,457 (+417.91%)
Mutual labels:  tour
Showcaseview
🔦The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with an attractive and flat overlay.
Stars: ✭ 281 (-84.61%)
Mutual labels:  tour
Abraham
Trackable application tours for Rails with i18n support
Stars: ✭ 52 (-97.15%)
Mutual labels:  tour
go-exercices
Exercices from the Go tour
Stars: ✭ 27 (-98.52%)
Mutual labels:  tour
angular-joyride
A lightweight joyride directive for giving tours of your AngularJs application
Stars: ✭ 18 (-99.01%)
Mutual labels:  tour
Introduction
An Android library to show an intro to your users.
Stars: ✭ 471 (-74.21%)
Mutual labels:  tour
aic-mobile-ios
Art Institute of Chicago Official Mobile App
Stars: ✭ 29 (-98.41%)
Mutual labels:  tour
Go Collection
🌷 awesome awesome go, study golang from basic to proficient
Stars: ✭ 1,193 (-34.67%)
Mutual labels:  tour
english
Base language version of the Tour
Stars: ✭ 27 (-98.52%)
Mutual labels:  tour
React Joyride
Create guided tours in your apps
Stars: ✭ 4,215 (+130.83%)
Mutual labels:  tour
Angular Shepherd
An Angular wrapper for the site tour library Shepherd
Stars: ✭ 96 (-94.74%)
Mutual labels:  tour
Core
D Language online tour (https://tour.dlang.org/) and online editor (https://run.dlang.io/)
Stars: ✭ 89 (-95.13%)
Mutual labels:  tour
Instructions
Create walkthroughs and guided tours (coach marks) in a simple way, with Swift.
Stars: ✭ 4,767 (+161.06%)
Mutual labels:  tour

Vue Tour

CircleCI

Vue Tour is a lightweight, simple and customizable tour plugin for use with Vue.js. It provides a quick and easy way to guide your users through your application.

Vue Tour

Table of Contents

Getting Started

You can install vue-tour using npm or by downloading the minified build on GitHub.

npm install vue-tour

Then import the plugin in your application entry point (typically main.js if you used vue-cli to scaffold your project) and tell Vue to use it. Also don't forget to include the styles. You can add the styles provided by default or customize them to your own liking.

import Vue from 'vue'
import App from './App.vue'
import VueTour from 'vue-tour'

require('vue-tour/dist/vue-tour.css')

Vue.use(VueTour)

new Vue({
  render: h => h(App)
}).$mount('#app')

Finally put a v-tour component in your template anywhere in your app (usually in App.vue) and pass it an array of steps. The target property of each step can target a DOM element in any component of your app (as long as it exists in the DOM when the concerned step pops up).

<template>
  <div>
    <div id="v-step-0">A DOM element on your page. The first step will pop on this element because its ID is 'v-step-0'.</div>
    <div class="v-step-1">A DOM element on your page. The second step will pop on this element because its ID is 'v-step-1'.</div>
    <div data-v-step="2">A DOM element on your page. The third and final step will pop on this element because its ID is 'v-step-2'.</div>

    <v-tour name="myTour" :steps="steps"></v-tour>
  </div>
</template>

<script>
  export default {
    name: 'my-tour',
    data () {
      return {
        steps: [
          {
            target: '#v-step-0',  // We're using document.querySelector() under the hood
            header: {
              title: 'Get Started',
            },
            content: `Discover <strong>Vue Tour</strong>!`
          },
          {
            target: '.v-step-1',
            content: 'An awesome plugin made with Vue.js!'
          },
          {
            target: '[data-v-step="2"]',
            content: 'Try it, you\'ll love it!<br>You can put HTML in the steps and completely customize the DOM to suit your needs.',
            params: {
              placement: 'top' // Any valid Popper.js placement. See https://popper.js.org/popper-documentation.html#Popper.placements
            }
          }
        ]
      }
    },
    mounted: function () {
      this.$tours['myTour'].start()
    }
  }
</script>

For all individual elements you want to add a step on, make sure it can be retrieved with document.querySelector(). You can use any selector, an ID, a CSS class, data attributes, etc. Once this is done and your steps correctly target some DOM elements of your application, you can start the tour by calling the following method.

this.$tours['myTour'].start()

For a more detailed documentation, checkout the docs for vue-tour.

before() UI step functions

If you need to do UI setup work before a step, there's a before function you may include in any/each of your steps. This function will get invoked before the start/next/previous step is rendered. The function must return a promise. The function is invoked when start, nextStep, and previousStep are triggered. When the promise is rejected, it will not move to the next or previous step. If the promise is resolved then it will move in the direction specified.

It's used when you need to change what's shown on the screen between steps. For example, you may want to hide one set of menus and open a screen or you want to perform an async operation. This is especially useful in single-page applications.

steps: [
  {
    target: '#v-step-0',  // We're using document.querySelector() under the hood
    content: `Discover <strong>Vue Tour</strong>!`,
    before: type => new Promise((resolve, reject) => {
      // Time-consuming UI/async operation here
      resolve('foo')
    })
  }
]

Something Missing?

If you have a feature request or found a bug, let us know by submitting an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].