angular-intro.js
Version:
Angular directive to wrap intro.js
61 lines (60 loc) • 2.25 kB
TypeScript
/// <reference types="intro.js" />
declare namespace ngIntroJs {
interface INgIntroService {
intro: IntroJs.IntroJs;
addListener(name: string, callback: Function): void;
removeListener(name: string): void;
setOptions: IntroJs.Options;
start(stepId?: number): IntroJs.IntroJs;
exit(): IntroJs.IntroJs;
clear(callback: Function): IntroJs.IntroJs;
goToStepNumber(stepId: number): IntroJs.IntroJs;
addHints(): IntroJs.IntroJs;
showHint(hintIdx: number): IntroJs.IntroJs;
showHints(): IntroJs.IntroJs;
hideHint(hintIdx: number): IntroJs.IntroJs;
hideHints(): IntroJs.IntroJs;
removeHint(stepid: number): IntroJs.IntroJs;
removeHints(): IntroJs.IntroJs;
previous(): IntroJs.IntroJs;
next(): IntroJs.IntroJs;
refresh(): IntroJs.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;
}
interface INgIntroDirectiveScope extends ng.IScope {
ngIntroMethod(step?: number): void;
ngIntroExitMethod(cb?: Function): void;
ngIntroNextMethod(): void;
ngIntroPreviousMethod(): void;
ngIntroRefreshMethod(): void;
ngIntroOptions(): void;
ngIntroOncomplete(): void;
ngIntroOnexit(): void;
ngIntroOnchange(): void;
ngIntroOnbeforechange(): void;
ngIntroOnafterchange(): void;
ngIntroAutostart(): void;
ngIntroAutorefresh(): void;
ngIntroHintsMethod(): void;
ngIntroOnhintsadded(): void;
ngIntroOnhintclick(): void;
ngIntroOnhintclose(): void;
ngIntroShowHint(id: number): void;
ngIntroShowHints(): void;
ngIntroHideHint(id: number): void;
ngIntroHideHints(): void;
}
interface NotifyItem {
[name: string]: Function;
}
}
declare const define: any;
declare const module: any;
declare const require: any;