Skip to content

Commit

Permalink
Updated the readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanburke committed Jul 7, 2014
1 parent 74341c4 commit 412b4a4
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
angular-help-overlay
====================

Angular Wrapper for chardin.js instruction overlay
Angular Wrapper for [chardin.js](https://github.com/heelhook/chardin.js "Chardin.js") instruction overlay which was inspired by the "new" Gmail composer tour.

Usage is straightforward:

Find the dom element where you want to the overlay to appear (e.g., body, div, etc.) and add this tag to the element:

```
<body help-overlay="showHelp">...</body>
```

With showHelp being a scoped boolean property. Setting that property to true will enable the overlay. Since this is just
an AngularJS wrapper around a jquery plugin, this directive still uses chardin.js native attribute lookups:

```
<div data-intro="Some Help description here">...</div>
```

Additionally this directive provides delegation of chardin.js start and stop events via, help-overlay-start and
help-overlay-stop:

```
<body help-overlay="showHelp" help-overlay-start="startFn(event)" help-overlay-stop="stopFn(event)">...</body>
```

events being passed are the original chardin.js event objects.

The example folder contains a modified example of the original chardin.js (i.e., minus the image animate).

0 comments on commit 412b4a4

Please sign in to comment.