mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
updated introjs interface to 2.5.0 (#16628)
This commit is contained in:
4
types/intro.js/index.d.ts
vendored
4
types/intro.js/index.d.ts
vendored
@@ -50,6 +50,7 @@ declare namespace IntroJs {
|
||||
exit(): IntroJs;
|
||||
clone(): IntroJs;
|
||||
|
||||
goToStepNumber(stepId: number): IntroJs
|
||||
goToStep(step: number): IntroJs;
|
||||
nextStep(): IntroJs;
|
||||
previousStep(): IntroJs;
|
||||
@@ -66,11 +67,12 @@ declare namespace IntroJs {
|
||||
oncomplete(callback: Function): IntroJs;
|
||||
|
||||
addHints(): IntroJs;
|
||||
|
||||
showHint(stepId: number): IntroJs;
|
||||
showHints(): IntroJs;
|
||||
hideHint(stepId: number): IntroJs;
|
||||
hideHints(): IntroJs;
|
||||
removeHint(stepId: number): IntroJs;
|
||||
removeHints(): IntroJs;
|
||||
|
||||
onhintsadded(callback: Function): IntroJs;
|
||||
onhintclick(callback: (hintElement: HTMLElement, item: Step, stepId: number) => any): IntroJs;
|
||||
|
||||
@@ -57,6 +57,7 @@ intro.setOptions({
|
||||
intro.start()
|
||||
.nextStep()
|
||||
.previousStep()
|
||||
.goToStepNumber(1).start()
|
||||
.goToStep(2)
|
||||
.exit()
|
||||
.refresh()
|
||||
@@ -89,6 +90,8 @@ intro.start()
|
||||
.showHints()
|
||||
.hideHint(1)
|
||||
.hideHints()
|
||||
.hideHint(1)
|
||||
.hideHints()
|
||||
.clone();
|
||||
|
||||
introWithElement.start()
|
||||
|
||||
Reference in New Issue
Block a user