X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/toolbar/toolbar-menu-overflow.js diff --git a/examples/toolbar/toolbar-menu-overflow.js b/examples/toolbar/toolbar-menu-overflow.js new file mode 100644 index 00000000..c78eb190 --- /dev/null +++ b/examples/toolbar/toolbar-menu-overflow.js @@ -0,0 +1,26 @@ +Ext.require(['*']); +var buttons = [{ + xtype: 'tbtext', + text : 'Text' +}, { + xtype: 'tbseparator' +}]; +for (var i = 0; i < 20; i++) { + buttons.push({ + text: 'Button ' + (i + 1), + handler: function(b) { + Ext.Msg.alert('Click', 'You clicked ' + b.text); + } + }) +} + +Ext.onReady(function() { + Ext.create('Ext.toolbar.Toolbar', { + renderTo: Ext.getBody(), + width : 600, + layout: { + overflowHandler: 'Menu' + }, + items: buttons + }); +}); \ No newline at end of file