X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/src/menu/Separator.js diff --git a/src/menu/Separator.js b/src/menu/Separator.js index cb8579d8..2f104711 100644 --- a/src/menu/Separator.js +++ b/src/menu/Separator.js @@ -13,16 +13,10 @@ If you are unsure which license is appropriate for your use, please contact the */ /** - * @class Ext.menu.Separator - * @extends Ext.menu.Item - * * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will * add one of these by using "-" in your call to add() or in your items config rather than creating one directly. * - * {@img Ext.menu.Separator/Ext.menu.Separator.png Ext.menu.Separator component} - * - * ## Code - * + * @example * Ext.create('Ext.menu.Menu', { * width: 100, * height: 100, @@ -38,102 +32,95 @@ If you are unsure which license is appropriate for your use, please contact the * },{ * text: 'regular item', * }] - * }); - * - * @markdown + * }); */ Ext.define('Ext.menu.Separator', { extend: 'Ext.menu.Item', alias: 'widget.menuseparator', - + /** * @cfg {String} activeCls @hide */ - + /** * @cfg {Boolean} canActivate @hide */ canActivate: false, - + /** * @cfg {Boolean} clickHideDelay @hide */ - + /** * @cfg {Boolean} destroyMenu @hide */ - + /** * @cfg {Boolean} disabledCls @hide */ - + focusable: false, - + /** * @cfg {String} href @hide */ - + /** * @cfg {String} hrefTarget @hide */ - + /** * @cfg {Boolean} hideOnClick @hide */ hideOnClick: false, - + /** * @cfg {String} icon @hide */ - + /** * @cfg {String} iconCls @hide */ - + /** - * @cfg {Mixed} menu @hide + * @cfg {Object} menu @hide */ - + /** * @cfg {String} menuAlign @hide */ - + /** * @cfg {Number} menuExpandDelay @hide */ - + /** * @cfg {Number} menuHideDelay @hide */ - + /** * @cfg {Boolean} plain @hide */ plain: true, - + /** * @cfg {String} separatorCls * The CSS class used by the separator item to show the incised line. * Defaults to `Ext.baseCSSPrefix + 'menu-item-separator'`. - * @markdown */ separatorCls: Ext.baseCSSPrefix + 'menu-item-separator', - + /** * @cfg {String} text @hide */ text: ' ', - + onRender: function(ct, pos) { var me = this, sepCls = me.separatorCls; - + me.cls += ' ' + sepCls; - - Ext.applyIf(me.renderSelectors, { - itemSepEl: '.' + sepCls - }); - + me.callParent(arguments); } });