How to make BrowserWindowOpener extend on MenuItem


I am designing a menubar to allow users to click on a menuitem to open a browserwindow. However, I found that BrowserWindowOpener.extend only allow AbstractComponent as target, not MenuItem. Any advices how to achieve such scenario?

Best regards,

Have you considered another approach. You could add MenuBar.Command to MenuBar.MenuItem, where you call…) method to open a new browser window.

That will do. Thanks a lot.