mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Updated intro.js tests per definition updates
Added and updated tests per the latest intro.js definition updates
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
/// <reference path="intro.js.d.ts" />
|
||||
|
||||
var intro = introJs();
|
||||
var introWithElement = introJs(document.body);
|
||||
var introWithQuerySelector = introJs('body');
|
||||
|
||||
intro.setOption('doneLabel', 'Next page');
|
||||
intro.setOption('overlayOpacity', 50);
|
||||
@@ -53,4 +55,18 @@ intro.start()
|
||||
})
|
||||
.oncomplete(function () {
|
||||
alert('Done');
|
||||
});
|
||||
})
|
||||
.onexit(function () {
|
||||
alert('Exiting');
|
||||
})
|
||||
.onhintsadded(function () {
|
||||
alert('Hints added');
|
||||
})
|
||||
.onhintclick(function (hintElement, item, stepId) {
|
||||
element.getAttribute('class');
|
||||
})
|
||||
.onhintclose(function (stepId) {
|
||||
alert('Hint close for Step ID ' + stepId);
|
||||
})
|
||||
.addHints()
|
||||
.clone();
|
||||
|
||||
Reference in New Issue
Block a user