Skip to content
Snippets Groups Projects

feat(plugins): data overlays (MIN-222)

Merged mateusz-winiarczyk requested to merge MIN-222-data-overlays into development
3 unresolved threads
10 files
+ 41
33
Compare changes
  • Side-by-side
  • Inline
Files
10
+ 6
1
@@ -22,12 +22,17 @@ window.minerva.overlays.data.getVisibleDataOverlays();
#### Show an overlay
To show an overlay, plugins can use the `showDataOverlay` method defined in `window.minerva.overlays`. This method takes one argument: the ID of the overlay that the plugin wants to show.
To show an overlay, plugins can use the `showDataOverlay` method defined in `window.minerva.overlays`. This method takes following arguments:
- overlayId - the ID of the overlay that the plugin wants to show.
- setBackgroundEmpty (optional) - whether `showDataOverlay` should set the background to empty if available when it shows overlay. Its value should be a boolean type.
##### Example of showDataOverlay usage:
```javascript
window.minerva.overlays.showDataOverlay(109);
window.minerva.overlays.showDataOverlay(112, true);
```
#### Hide an overlay
Loading