1.3.6 • Published 7 years ago

web-story v1.3.6

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Web Story

Library for building tours on your front page (Step-by-step guide and feature introduction).

Dependencies - None

Support

WebStory Support UMD(Universal Module Definition), CommonJS, es moudles and regular script tag. In addtion webStory support all freamworks such as Angular by waiting to the given element to display(There is Configurable timeout).

Demo

https://codepen.io/yarden101/full/rzVwXJ

Installation

Using npm:

$ npm install --save web-story

Usage

  1. Include the css file (web-story.css) in you app
  2. Import the js file (index.js) in your app you can choose the way you want to import the file
import { WebStory } from 'webStory' 
var WebStory = require('webStory')
<script src="webStory"></script>
  1. use the WebStory to create new Story :)
// WebStory = WebStory.WebStory - in case imported using script tag

webStory = new WebStory({
   getCurrentPageName: function () {
      return "string that represent the current page that you re found";
   },
   pages: [
   {
     pageContainer: undefined, //(first page must be witout pageContainer beacasue is dont have one it is popUp)
     template: "<h1>{{test}}</h1>" //(in case undefined there is default template)
     data: {
	   test: "this string will be transfer with {{test}} in the template",
	   header:"this is prop of the deafulat template",
	   subHeader:"this is prop of the deafulat template"
     }
   }, 
   {
     pageContainer: {
	   cssSelector: `#elementId`, //css selector for get the element
	   position: 'left/right/top/botton // from where the tooltip will show'
     },
     template:undefined, //(undefined = default template),
     data: {
	   header: "header of the default template",
	   content: "content of the default template"
     }
   }
]});

webStory.startStory(); -- return Promise

API Reference

Full Documentation

License

MIT
1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago