forked from jordanburke/angular-help-overlay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74341c4
commit 412b4a4
Showing
1 changed file
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |