Update Intro.Js types

This commit is contained in:
ThibaudAv
2018-12-07 15:46:22 +01:00
parent a5cac1fda5
commit 2267190385
2 changed files with 19 additions and 6 deletions
+5 -1
View File
@@ -7,7 +7,11 @@ declare namespace IntroJs {
interface Step {
intro: string;
element?: string|HTMLElement|Element;
position?: string;
position?: "top"|"left"|"right"|"bottom"|"bottom-left-aligned"|"bottom-middle-aligned"|"bottom-right-aligned"|"auto";
tooltipClass?: string;
highlightClass?: string;
scrollTo?: "off"|"tooltip"|"element";
disableInteraction?: boolean;
}
interface Hint {
+14 -5
View File
@@ -31,13 +31,22 @@ intro.setOptions({
position: 'left'
},
{
element : '#step4',
intro : "Another step.",
position: 'bottom'
element : '#step4',
intro : "Another step.",
position : 'bottom',
tooltipClass : 'step4Class',
highlightClass: ''
},
{
element: '#step5',
intro : 'Get it, use it.'
element : '#step4',
intro : "Another step.",
position: 'bottom',
scrollTo: 'tooltip'
},
{
element : '#step5',
intro : 'Get it, use it.',
disableInteraction: true
}
],
hints: [