Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to expose action for toggling between Mobile and Web preview? #5

Open
chriscain opened this issue Sep 3, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@chriscain
Copy link

Hey there BEE Plugin crew!

We're currently using Custom CSS to style the BEE Editor to match our app (thank you for this awesome feature!) but would love to provide our own Web | Mobile preview toggle. We could style yours using Custom CSS, but we'd like to programatically hook into the change between Mobile/Web when a user clicks on that, so we can show other UI related to which preview mode is being shown.

My question: Is there any possibility of exposing either an additional callback (onPreviewModeToggled) or some sort of instance method togglePreviewMode(TYPE) to the plugin? That would be OUTSTANDING! 🤞

Thanks so much for your time!

@stefano-regosa-deel stefano-regosa-deel self-assigned this Sep 26, 2020
@stefano-regosa-deel stefano-regosa-deel added the enhancement New feature or request label Sep 26, 2020
@stefano-regosa-deel stefano-regosa-deel pinned this issue Sep 26, 2020
@stefano-regosa-deel stefano-regosa-deel removed their assignment Jun 30, 2021
@davidesamp davidesamp unpinned this issue Dec 3, 2021
@BenJenkinson
Copy link
Contributor

I would also appreciate an onPreviewModeToggled event callback.

This would allow us to synchronise the preview mode's "Web"/"Mobile" toggle with the workspace's WorkspaceStage value that the user returns to once the preview mode is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants