tutorial-page-guide
v0.2.0
Published
a tutorial or user guide for pages
Readme
tutorial page guide
lite and useful, free framework!
picture
how to import
import 'tutorial-page-guide/src/styles.css'
import tutorialPageGuide from 'tutorial-page-guide'
var data = [
{
title:'your title',
path:'your-page-path',
src:'your-video-source',
description:'your-description'
}
]
var options = {
buttonTitle: "can i help you?",
isDefaultOpen: false,
enableTrackingRoute: false,
}
tutorialPageGuide.init(data, options)Usage
if you have a SPA project, you can
initin root of your project and setenableTrackingRoutetotrueto track path hanges and show true guides each page. Notice: if you setenableTrackingRoutetotrue, remember rundestroy()after you don't need it.if not in SPA, you can init in each page you want without
enableTrackingRoute
enjoy
