mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add new options to introjs (#14912)
This commit is contained in:
parent
951a105ad7
commit
5eff71dd9c
4
intro.js/index.d.ts
vendored
4
intro.js/index.d.ts
vendored
@ -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[];
|
||||
}
|
||||
|
||||
@ -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!"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user