menu
announcement

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

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

Replace SideBar Widgets onClick with a custom action

January 28, 2020 at 8:36pm

Replace SideBar Widgets onClick with a custom action

January 28, 2020 at 8:36pm
Say, for example, I want to alert('Hello World') when I click on the File Explorer tab on the leftSideBar in addition to preventing the file tree content from expanding. Basically, it has to be collapsed at all times and only alert when I click on it. How do I disable this toggle behavior and perform this custom action instead?

January 29, 2020 at 11:53am

January 30, 2020 at 2:57am
I don't know. You will need a custom extension which install a listener on the side bar toolbar. Probably by customizing one of toolbar renderer. You will need to debug to figure out how it works and what should be customized. sorry, i don't have a ready solution