X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/app/view/HoverMenu.js diff --git a/docs/app/view/HoverMenu.js b/docs/app/view/HoverMenu.js deleted file mode 100644 index 5ce0a866..00000000 --- a/docs/app/view/HoverMenu.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Menu shown by {@link Docs.view.HoverMenuButton}. - */ -Ext.define('Docs.view.HoverMenu', { - extend: 'Ext.view.View', - - componentCls: 'hover-menu', - itemSelector: 'div.item', - deferEmptyText: false, - renderTo: Ext.getBody(), - - /** - * @cfg {Number} colHeight maximum number of items in one column. - * When more than that, items are placed into multiple columns. - * Defaults to 25 (current maximum length of history). - */ - columnHeight: 25, - /** - * @cfg {Boolean} showCloseButtons true to show "x" after each menu item. - * Defaults to false. - */ - showCloseButtons: false, - - initComponent: function() { - this.tpl = new Ext.XTemplate( - '', - '', - '', - '', - '
', - '', - '
', - '{[this.renderLink(values)]}', - '', - 'x', - '', - '
', - // Start new column when columnHeight reached - '', - '
', - '', - '', - '
', - { - columnHeight: this.columnHeight, - showCloseButtons: this.showCloseButtons, - renderLink: function(values) { - var url = values.url || values.cls; - var label = values.label || values.cls; - return Ext.String.format('{1}', url, label); - } - } - ); - - this.callParent(); - } -});