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

Commit 3cc8935

Browse files
authored
Merge pull request #126 from millerscout/intro-js-to-2.5.0
update intro js to 2.50
2 parents faa561b + 944c901 commit 3cc8935

8 files changed

+56
-8
lines changed

README.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ In your controller:
9393
console.log('on complete callback!')
9494
});
9595
```
96-
the list of supported callbacks are:
96+
the list of current callbacks are:
9797

9898
* `onComplete`
9999
* `onExit`
@@ -104,6 +104,37 @@ the list of supported callbacks are:
104104
* `onHintClose`
105105
* `onHintsAdded`
106106

107+
The current short Interface is:
108+
p.s. it's avaiable on build folder the .d.ts file
109+
``` javascript
110+
intro: IntroJs;
111+
addListener(name: string, callback: Function): void;
112+
removeListener(name: string): void;
113+
setOptions: IntroJs.Options;
114+
start(stepId?: number): IntroJs;
115+
exit(): IntroJs;
116+
clear(callback: Function): IntroJs;
117+
goToStepNumber(stepId: number): IntroJs;
118+
addHints(): IntroJs;
119+
showHint(hintIdx: number): IntroJs;
120+
showHints(): IntroJs;
121+
hideHint(hintIdx: number): IntroJs;
122+
hideHints(): IntroJs;
123+
removeHint(stepid: number): IntroJs;
124+
removeHints(): IntroJs;
125+
previous(): IntroJs;
126+
next(): IntroJs;
127+
refresh(): IntroJs;
128+
onComplete(callback: Function): void;
129+
onExit(callback: Function): void;
130+
onBeforeChange(callback: Function): void;
131+
onAfterChange(callback: Function): void;
132+
onChange(callback: Function): void;
133+
onHintClick(callback: Function): void;
134+
onHintClose(callback: Function): void;
135+
onHintsAdded(callback: Function): void;
136+
```
137+
107138
### Exit Method
108139

109140
**Directive** - `ng-intro-exit-method="ExitMe"`

bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-intro.js",
3-
"version": "3.2.5",
3+
"version": "3.3.0",
44
"main": "build/angular-intro.min.js",
55
"description": "Angular directive to wrap intro.js",
66
"license": "MIT",
@@ -13,7 +13,7 @@
1313
],
1414
"dependencies": {
1515
"angular": "^1.4.0",
16-
"intro.js": "~2.4.0"
16+
"intro.js": "~2.5.0"
1717
},
1818
"devDependencies": {}
1919
}

build/angular-intro.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)