Expose refresh functionality
Browse files- src/index.js +7 -0
- types/index.d.ts +5 -0
src/index.js
CHANGED
|
@@ -155,6 +155,13 @@ export default class Driver {
|
|
| 155 |
return;
|
| 156 |
}
|
| 157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
this.overlay.refresh();
|
| 159 |
}
|
| 160 |
|
|
|
|
| 155 |
return;
|
| 156 |
}
|
| 157 |
|
| 158 |
+
this.refresh();
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
/**
|
| 162 |
+
* Refreshes and repositions the popover and the overlay
|
| 163 |
+
*/
|
| 164 |
+
refresh() {
|
| 165 |
this.overlay.refresh();
|
| 166 |
}
|
| 167 |
|
types/index.d.ts
CHANGED
|
@@ -69,6 +69,11 @@ declare module 'driver.js' {
|
|
| 69 |
*/
|
| 70 |
private onResize(): void;
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
/**
|
| 73 |
* Makes it operable with keyboard
|
| 74 |
* @param {Event} e
|
|
|
|
| 69 |
*/
|
| 70 |
private onResize(): void;
|
| 71 |
|
| 72 |
+
/**
|
| 73 |
+
* Refreshes and repositions the popover and the overlay
|
| 74 |
+
*/
|
| 75 |
+
private refresh(): void;
|
| 76 |
+
|
| 77 |
/**
|
| 78 |
* Makes it operable with keyboard
|
| 79 |
* @param {Event} e
|