Hi, I’m new to theia, I want to create new widget in main layout which takes some user inputs and shows some messages based on the input, I created widget in left panel, but I want a new screen in tab which can contain many react components, how do I achieve this?
[original thread by Lakkana]
Your widget can extend ReactWidget
and you can implement render
method with the custom component embedding ohter react components.
I don’t really understand what you mean by a new screen
. A widget? a window?
In order to attach a widget to the shell, you shuold always use ApplicationShell.attachWidget
. It accepts options like in which area widget should be shown, relative to which widget, before, after, split into some direction and so on…
[Lakkana]
If I open file it open new editor like that I need create new view which contains some components
ok, have a look at OutputContribution
if you are interested in the singleton view and at EditorManager
implementation if you are interested to have multiple instances of a widget.
[Lakkana]
Can i get any example links for ApplicationShell
and OutputContribution
.