menu
announcement

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

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

adding a button to the top horizontal bar

February 12, 2020 at 3:45pm

adding a button to the top horizontal bar

February 12, 2020 at 3:45pm
Hello I would need to add a button to the default top horizontal toolbar through extension paradigm. the clicking of that button executing a callback or executing a command.
Could you walk me through the steps for it?
Thanks in advance for your help

February 12, 2020 at 10:44pm
hi, I guess I figured out the best option for me was to use MenuModelRegistry. was it the only or recommended way?

February 13, 2020 at 8:40am
I think you can also add a widget to top area with ApplicaitonShell.addWidget(widget, { area: 'top' })

February 13, 2020 at 4:15pm
thanks, but this one actually showed at the top left corner