Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #126 from millerscout/intro-js-to-2.5.0
Browse files Browse the repository at this point in the history
update intro js to 2.50
  • Loading branch information
millerscout authored Jun 16, 2017
2 parents faa561b + 944c901 commit 3cc8935
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 8 deletions.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ In your controller:
console.log('on complete callback!')
});
```
the list of supported callbacks are:
the list of current callbacks are:

* `onComplete`
* `onExit`
Expand All @@ -104,6 +104,37 @@ the list of supported callbacks are:
* `onHintClose`
* `onHintsAdded`

The current short Interface is:
p.s. it's avaiable on build folder the .d.ts file
``` javascript
intro: IntroJs;
addListener(name: string, callback: Function): void;
removeListener(name: string): void;
setOptions: IntroJs.Options;
start(stepId?: number): IntroJs;
exit(): IntroJs;
clear(callback: Function): IntroJs;
goToStepNumber(stepId: number): IntroJs;
addHints(): IntroJs;
showHint(hintIdx: number): IntroJs;
showHints(): IntroJs;
hideHint(hintIdx: number): IntroJs;
hideHints(): IntroJs;
removeHint(stepid: number): IntroJs;
removeHints(): IntroJs;
previous(): IntroJs;
next(): IntroJs;
refresh(): IntroJs;
onComplete(callback: Function): void;
onExit(callback: Function): void;
onBeforeChange(callback: Function): void;
onAfterChange(callback: Function): void;
onChange(callback: Function): void;
onHintClick(callback: Function): void;
onHintClose(callback: Function): void;
onHintsAdded(callback: Function): void;
```

### Exit Method

**Directive** - `ng-intro-exit-method="ExitMe"`
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-intro.js",
"version": "3.2.5",
"version": "3.3.0",
"main": "build/angular-intro.min.js",
"description": "Angular directive to wrap intro.js",
"license": "MIT",
Expand All @@ -13,7 +13,7 @@
],
"dependencies": {
"angular": "^1.4.0",
"intro.js": "~2.4.0"
"intro.js": "~2.5.0"
},
"devDependencies": {}
}
4 changes: 2 additions & 2 deletions build/angular-intro.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3cc8935

Please sign in to comment.