menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

Preview panel improvement

October 11, 2019 at 1:03pm

Preview panel improvement

October 11, 2019 at 1:03pm
Hello! It would be greate if user can be able to edit the URL that is currently opened in the preview panel. It will provide an opportunity to navigate easily into the different components of an application Does it make sense?
I would like to know your opinion about it Thanks in advance!

October 11, 2019 at 1:35pm
the issue would be good. There are UX issues with the mini-browser. That's a reason why it was disabled. know more
yes, i have the same request. it's very annoying that you can't navigate to a different URL, but it seems to be hardcoded to a single URL.
There are UX issues with the mini-browser.
99% will run into a security exception due to CORS
Use MiniBrowserProps.toolbar = 'visible' if you want to navigate. I do not want to change the default in Theia.
Edited

October 13, 2019 at 3:53am
but it is possible to switch defaults via the custom extension for existing widgets?

October 14, 2019 at 2:59pm
thank you for answers!
We use theia.commands.executeCommand API to run mini-browser.openUrl command from plugin side. It's possible to pass URL to command handler, but looks like toolbar property is harcoded
What is the alternative way? thank you!

October 15, 2019 at 7:10am
but it is possible to switch defaults via the custom extension for existing widgets?
Should be.
What is the alternative way? thank you!
You can customize the MiniBrowserOpenHandler#getOpenPreviewProps and rebind it.

October 16, 2019 at 6:04am