add new options to introjs (#14912)

This commit is contained in:
Simon 2017-03-10 16:03:22 +09:00 committed by Mohamed Hegazy
parent 951a105ad7
commit 5eff71dd9c
2 changed files with 8 additions and 0 deletions

4
intro.js/index.d.ts vendored
View File

@ -21,6 +21,8 @@ declare namespace IntroJs {
prevLabel?: string;
skipLabel?: string;
doneLabel?: string;
hidePrev?: boolean;
hideNext?: boolean;
tooltipPosition?: string;
tooltipClass?: string;
highlightClass?: string;
@ -33,10 +35,12 @@ declare namespace IntroJs {
showProgress?: boolean;
scrollToElement?: boolean;
overlayOpacity?: number;
scrollPadding?: number;
positionPrecedence?: string[];
disableInteraction?: boolean;
hintPosition?: string;
hintButtonLabel?: string;
hintAnimation?: boolean;
steps?: Step[];
hints?: Hint[];
}

View File

@ -8,6 +8,10 @@ intro.setOption('doneLabel', 'Next page');
intro.setOption('overlayOpacity', 50);
intro.setOption('showProgress', true);
intro.setOptions({
hidePrev: true,
hideNext: false,
scrollPadding: 30,
hintAnimation: false,
steps: [
{
intro: "Hello world!"