Skip to content

[Designer] How to customize Toolbar #8038

Answered by anna-dingler
becory asked this question in Q&A
Discussion options

You must be logged in to vote

@becory
You can enable/disable preview mode using designer.designerSurface.isPreviewMode = true; and designer.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!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@anna-dingler
Comment options

@becory
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by becory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants