Giter VIP home page Giter VIP logo

ng-tutorial's Introduction

ng-tutorial

Simple and cool Angular widget to create tutorial pages

Index

Introduction

ngTutorial is an AngularJS module, that lets you easily create a tutorial page on your website! See the demo at tonysamperi.github.io/ng-tutorial

Requirements

The only requirement needed is AngularJS that you can install it via Bower.

Usage

Simply include the ng-tutorial JS and CSS

<html>
    <head>
        <script type="text/javascript" src="path-to/ng-tutorial.js"></script>
        <link type="text/css" rel="stylesheet" href="path-to/ng-tutorial.css" />
    </head>
</html>

Inject ngTutorial in your app:

var app = angular.module("myApp", ["ngTutorial"]);

Remember to bootstrap your app by using the ng-app directive or the bootstrap method! Create a container with the "tutorial" attribute and select elements to highlight with the tutorial-highlight attribute

<any tutorial="myTutorialActivator">
    <any tutorial-highlight>
    </any>
    <any tutorial-highlight>
    </any>
</any>

Params

Option Description Type Default value
tutorial-prevent-click If "true", an extra overlay will prevent user to interact with highlighted elements (Since highlighted elements are real elements of your page) String false
tutorial-show-close If "true" a close button will be rendered to terminate the tutorial. If empty any click will close the tutorial. String false

License

Check out LICENSE file (MIT)

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.