Adding a Menu to a ContentPanel when Icon is clicked
Adding a Menu to a ContentPanel when Icon is clicked
Hi there,
I have a TabPanel in whose TabItems the user can add/remove ContentPanel(s). I would like to add a Menu to the ContentPanel. The Menu should be displayed when the user clicks on the ContentPanel icon.
Thanks, but that would mean actually creating a toolbar in the TopComponent, add a button to it and then use the setMenu() method. What I'd like to do is display a menu when the user clicks the icon in the header on the top left on the ContentPanel.
This way I would not waste screen estate with another toolbar.
not that I know... consider extending ContentPanel and replacing header with your own extended header that implements the buttons differently - you have the source and would be really easy to do