We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98dd88e commit ed95dc7Copy full SHA for ed95dc7
theSrc/scripts/widgetdefinition.js
@@ -58,6 +58,9 @@ const widgetDefinition = {
58
}
59
60
var graphDiv = document.getElementById(el.id);
61
+
62
+ // Used by Displayr to determine when widget is ready to be snapshot for testing
63
+ graphDiv.setAttribute("rhtmlwidget-status", "loading");
64
65
// TODO: move the control panel injection strategy inside here...
66
HTMLWidgets.addPostRenderHandler(function() {
@@ -551,6 +554,11 @@ const widgetDefinition = {
551
554
});
552
555
553
556
} // end of selectionChange
557
558
+ graphDiv.on("plotly_afterplot", function() {
559
560
+ graphDiv.setAttribute("rhtmlwidget-status", "ready");
561
+ });
562
} // end of renderValue
563
564
0 commit comments