0.0.7 • Published 4 years ago

@twoavy/tutorial-overlay v0.0.7

Weekly downloads
1,276
License
MIT
Repository
github
Last release
4 years ago

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()
0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago