9 * @class Roo.bootstrap.Alert
10 * @extends Roo.bootstrap.Component
11 * Bootstrap Alert class
12 * @cfg {String} title The title of alert
13 * @cfg {String} html The content of alert
14 * @cfg {String} weight ( success | info | warning | danger )
15 * @cfg {String} faicon font-awesomeicon
19 * @param {Object} config The config object
23 Roo.bootstrap.Alert = function(config){
24 Roo.bootstrap.Alert.superclass.constructor.call(this, config);
28 Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component, {
35 getAutoCreate : function()
44 cls : 'roo-alert-title',
49 cls : 'roo-alert-content',
58 cls : 'fa ' + this.faicon
67 initEvents: function()
72 setText : function(str)
74 this.el.select('.roo-button-text',true).first().dom.innerHTML = str;