Coder Social home page Coder Social logo

chicaga-tour's Introduction

chicaga-tour

Ship Shape

chicaga-tour is a wrapper for VueJS with custom styles by Chicaga for Shepherd.js tour lib. Contact us for web app consulting, development, and training for your project..

This is a Vue wrapper for the Shepherd, site tour, library.

Installation

NPM

npm install chicaga-tour --save

Import styles to App.vue:

@import '~chicaga-tour/dist/chicaga-tour.min.css';

When using with a module system, you must explicitly install chicaga-tour via Vue.use():

import Vue from 'vue';
import ChicagaTour from 'chicaga-tour';

Vue.use(ChicagaTour);

Constructor Function

<template>
  <div class='tour-example'>
    Testing
  </div>
</template>

<script>
  export default {
    name: 'TourExample',
    mounted() {
      this.$nextTick(() => {
        const tour = this.$shepherd({
          useModalOverlay: true
        });

        tour.addStep({
          title: 'Реферальная программа',
          text: 'При клике на аватарку или ФИО вы попадете в <b>личный кабинет</b>,где сможете изменить свои данные.\
          При клике на стрелочку появится меню где расположены кнопки для связи с куратором,\
          опционально с преподавателем, <i>зависит от тарифа</i>, так же настройки личного кабинета.',
          attachTo: {
            element: '.tour-example',
            on: 'bottom'
          },
          buttons: [
            {
              action() {
                return this.cancel();
              },
              classes: 'shepherd-button-secondary',
              text: 'Пропустить'
            },
            {
              action() {
                return this.next();
              },
              text: 'Далее'
            }
          ],
          id: 'creating'
        });

        tour.start();
      });
    }
  };
</script>

chicaga-tour's People

Watchers

ipfgr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.