* Bootstrap MessageBar class
* @cfg {String} html contents of the MessageBar
* @cfg {String} weight (info | success | warning | danger) default info
+ * @cfg {Boolean} closable (true | false) default true
*
* @constructor
* Create a new Element
html: '',
weight: 'info',
-
+ closable: true,
getAutoCreate : function(){
html: this.html || ''
}
+ if(this.closable){
+ cfg.cn = {
+ tag: 'button',
+ cls: 'close'
+ }
+ }
+
return cfg;
}