You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`Tabs.fresh()` creates a fresh graph div and return it and
74
-
-`Tabs.getGraph()` returns the current graph div.
72
+
| Method/Property | Description |
73
+
|-|-|
74
+
|`Tabs.fresh([id])`| Creates a fresh graph div and returns it (default id of `graph`). |
75
+
|`Tabs.getGraph([id])`| Returns the default or specified graph div. |
76
+
| `Tabs.plotMock(mock, [id]) | Plots the specified mock (`.json` extension is not required). |
77
+
| `Tabs.snapshot([id]) | Creates a png snapshot of the plot and places it below. |
78
+
|`Tabs.reload()`| Reloads the plotly.js script and will execute `Tabs.onReload` once completed. |
79
+
|`Tabs.onReload()`| By default, set to `noop` but you may set `Tabs.onReload` to any function you wish. This is useful for replotting a mock or test every time you reload the plotly.js script. |
80
+
|`Tabs.purge()`| Destroys all plots. |
81
+
82
+
View [the source](https://github.com/plotly/plotly.js/blob/master/devtools/test_dashboard/devtools.js) for more info.
83
+
84
+
Three additional helpers exist that are refreshed every second:
85
+
86
+
*`gd` - this is the default plot div
87
+
*`fullData` - shortcut to `gd._fullData`
88
+
*`fullLayout` - shortcut to `gd._fullLayout`
89
+
90
+
There is also a search bar in the top right of the dashboard. This fuzzy-searches
91
+
image mocks based on their file name and trace type.
0 commit comments