Options for popover
Browse files
assets/scripts/src/sholo.js
CHANGED
|
@@ -20,7 +20,7 @@ export default class Sholo {
|
|
| 20 |
this.document = document;
|
| 21 |
this.window = window;
|
| 22 |
|
| 23 |
-
this.overlay = new Overlay(options, window, document);
|
| 24 |
|
| 25 |
this.steps = []; // steps to be presented if any
|
| 26 |
this.currentStep = 0; // index for the currently highlighted step
|
|
@@ -174,9 +174,7 @@ export default class Sholo {
|
|
| 174 |
}
|
| 175 |
|
| 176 |
// @todo pass the options such as position, button text etc
|
| 177 |
-
const popover = new Popover(
|
| 178 |
-
padding: this.options.padding,
|
| 179 |
-
}, this.window, this.document);
|
| 180 |
const element = new Element(domElement, elementOptions, popover, this.overlay, this.window, this.document);
|
| 181 |
|
| 182 |
this.steps.push(element);
|
|
@@ -205,7 +203,7 @@ export default class Sholo {
|
|
| 205 |
}
|
| 206 |
|
| 207 |
// @todo add options such as position, button texts, additional classes etc
|
| 208 |
-
const popover = new Popover(
|
| 209 |
const element = new Element(domElement, this.options, popover, this.overlay, this.window, this.document);
|
| 210 |
this.overlay.highlight(element);
|
| 211 |
}
|
|
|
|
| 20 |
this.document = document;
|
| 21 |
this.window = window;
|
| 22 |
|
| 23 |
+
this.overlay = new Overlay(this.options, this.window, this.document);
|
| 24 |
|
| 25 |
this.steps = []; // steps to be presented if any
|
| 26 |
this.currentStep = 0; // index for the currently highlighted step
|
|
|
|
| 174 |
}
|
| 175 |
|
| 176 |
// @todo pass the options such as position, button text etc
|
| 177 |
+
const popover = new Popover(elementOptions, this.window, this.document);
|
|
|
|
|
|
|
| 178 |
const element = new Element(domElement, elementOptions, popover, this.overlay, this.window, this.document);
|
| 179 |
|
| 180 |
this.steps.push(element);
|
|
|
|
| 203 |
}
|
| 204 |
|
| 205 |
// @todo add options such as position, button texts, additional classes etc
|
| 206 |
+
const popover = new Popover(this.options, this.window, this.document);
|
| 207 |
const element = new Element(domElement, this.options, popover, this.overlay, this.window, this.document);
|
| 208 |
this.overlay.highlight(element);
|
| 209 |
}
|