I would like to create an extension that has a widget with tab controls. I’m starting from the widget example in generator-theia-extension, but I’m not sure where to go from there. Is there some API I can use that will allow me to easily add tabs?
@bendavis thank you for the question, the tabs you are referring to are simply widgets/views that are opened in the
main area (the generator I believe opens to the left). https://github.com/theia-ide/generator-theia-extension/blob/master/templates/widget/contribution.ts#L24
By ‘tab controls’ are you referring to toolbar items? If so, you can implement the following interface https://github.com/eclipse-theia/theia/blob/57b4b671f621dc1c5c6eec7f8c6ab1fe0585e4a5/packages/core/src/browser/shell/tab-bar-toolbar.tsx#L211-L224. You can find many examples in the source code by searching for
@vince-fugnitto by “tab controls” I’m referring to the tabs themselves. I was hoping to create a widget on the right-side area that has a tabbed interface.