We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fb794e commit 81f727dCopy full SHA for 81f727d
1 file changed
src/views/ChartifactDialog.tsx
@@ -272,6 +272,17 @@ export const openChartifactViewer = async (chartifactMarkdown: string) => {
272
};
273
274
chartifactWindow.postMessage(renderRequest, 'https://microsoft.github.io');
275
+
276
+ //Call here to show source
277
+ const toolbarControl: {
278
+ type: 'hostToolbarControl';
279
+ showSource?: boolean;
280
+ } = {
281
+ type: 'hostToolbarControl',
282
+ showSource: true
283
+ };
284
285
+ chartifactWindow.postMessage(toolbarControl, 'https://microsoft.github.io');
286
287
// Remove the event listener after sending
288
window.removeEventListener('message', handleMessage);
0 commit comments