10 * @class Roo.bootstrap.MenuItem
11 * @extends Roo.bootstrap.Component
12 * Bootstrap MenuItem class
13 * @cfg {String} html the menu label
14 * @cfg {String} href the link
15 * @cfg {Boolean} preventDefault (true | false) default true
19 * Create a new MenuItem
20 * @param {Object} config The config object
24 Roo.bootstrap.MenuItem = function(config){
25 Roo.bootstrap.MenuItem.superclass.constructor.call(this, config);
30 * The raw click event for the entire grid.
31 * @param {Roo.EventObject} e
37 Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component, {
43 getAutoCreate : function(){
55 cfg.cn[0].href = this.href || cfg.cn[0].href ;
56 cfg.cn[0].html = this.html || cfg.cn[0].html ;
60 initEvents: function() {
62 this.el.on('click', this.onClick, this);
67 Roo.log('item on click ');
68 if(this.preventDefault){
72 this.fireEvent('click', this, e);