/*
* - LGPL
*
- * row
+ * menu separator
*
*/
/**
- * @class Roo.bootstrap.MenuItem
+ * @class Roo.bootstrap.MenuSeparator
* @extends Roo.bootstrap.Component
- * Bootstrap MenuItem class
- * @cfg {String} html the menu label
- * @cfg {String} href the link
- *
+ * Bootstrap MenuSeparator class
*
* @constructor
* Create a new MenuItem
*/
-Roo.bootstrap.MenuItem = function(config){
- Roo.bootstrap.MenuItem.superclass.constructor.call(this, config);
+Roo.bootstrap.MenuSeparator = function(config){
+ Roo.bootstrap.MenuSeparator.superclass.constructor.call(this, config);
};
-Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component, {
+Roo.extend(Roo.bootstrap.MenuSeparator, Roo.bootstrap.Component, {
getAutoCreate : function(){
- var cfg= {
- cls: '',
- tag : 'li',
- cn : [
- {
- tag : 'a',
- href : '#',
- html : 'Link'
- }
- ]
+ var cfg = {
+ cls: 'divider',
+ tag : 'li'
};
- cfg.cn[0].href = this.href || cfg.cn[0].href ;
- cfg.cn[0].html = this.html || cfg.cn[0].html ;
return cfg;
}