[Designer] How to customize Toolbar #8038
-
Hi, I am trying to customize the adaptive card designer toolbar. I think a lot of function is private in card-designer that can't be customized by the designer. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Have any chance to removeElement from CardDesigner.toolbar? I want to remove Copy JSON payload button. designer.toolbar.getElementById('__copyJsonButton').isVisible = false |
Beta Was this translation helpful? Give feedback.
-
@becory You will need to create a new Hope this helps! |
Beta Was this translation helpful? Give feedback.
@becory
You can enable/disable preview mode using
designer.designerSurface.isPreviewMode = true;
anddesigner.designerSurface.isPreviewMode = false;
.You will need to create a new
ToolbarButton
that handles the preview toggling itself, and hide the given "Preview mode" button.Hope this helps!