Adding button to menu bar


#1

Is it possible to add a button/dropdown to the menu bar, like where the Run and Debug button are shown?


#2

to add new menu use setRootMenu method

to add a button use ui.insertByIndex(layout.getElement("barTools")) new ui.button({})