New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@twoavy/tutorial-overlay

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twoavy/tutorial-overlay

Fullscreen overlay with cutout for tutorial purposes

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
2
Created
Source

tutorial-overlay

Vue plugin to highlight UI elements through a fullscreen overlay for tutorial purposes

Installation

yarn add @twoavy/tutorial-overlay
import Tutorial from '@twoavy/tutorial-overlay'

Vue.use(Tutorial, {
    bgOpacity: 0.8,
    borderRadius: 30,
    btnClass: 'btn',
    messageClass: 'message',
    disableBackBtn: false,
    preferredLabelPos: 'right',
    labelOffset: 30,
    nextBtnText: 'next',
    prevBtnText: 'previous',
    hideButtons: false,
    clickEveryWhere: false
})

Usage

this.$tutorial.add([
    { el: this.$refs.lorem, message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr.' },
    { el: this.$refs.ipsum, message: 'Ipsum' },
    { el: this.$refs.dolor, message: 'Babel' }
]).then(() => {
    console.log('tutorial finished')
}).catch(e => {
    // input array is invalid
    console.log(e.message)
})

this.$tutorial.destroy()

FAQs

Package last updated on 31 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts