Is there a way to get the Ext.menu and/or the Ext.Button components used for the overflow menu and “more button” respectively on a Ext.toolbar that has enableOverflow:true?
I tried attaching a listener to the toolbar’s overflowchange event to see if I could use query() or getComponent() to find the button/menu when it was being shown, but that event does not seem to fire when resizing the toolbar to cause the overflow menu to appear/disappear. I also monitored the toolbar’s add event to see if that was fired when the “more” button was added to the toolbar, but no luck there either.
Figured it out, with help from the Sencha Forums:
http://www.sencha.com/forum/showthread.php?160597-Getting-a-toolbar-s-overflow-menu
The overflow menu component resides in:
toolbar.layout.overflowHandler.menuBe care though, the
menuproperty ofoverflowHandleris only present when the menu is actually needed.