Roo/bootstrap/Alert.js
authorAlan Knowles <alan@roojs.com>
Tue, 8 Jun 2021 07:58:49 +0000 (15:58 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 8 Jun 2021 07:58:49 +0000 (15:58 +0800)
Roo/bootstrap/Alert.js

index cf85568..b4d09d4 100644 (file)
@@ -10,7 +10,8 @@
  * @cfg {String} title The title of alert
  * @cfg {String} html The content of alert
  * @cfg {String} weight (  success | info | warning | danger )
- * @cfg {String} faicon font-awesomeicon
+ * @cfg {String} fa font-awesomeicon
+ * 
  * 
  * @constructor
  * Create a new alert
@@ -28,7 +29,8 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
     title: '',
     html: '',
     weight: false,
-    faicon: false,
+    fa: false,
+    faicon: false, // BC
     
     getAutoCreate : function()
     {
@@ -58,6 +60,9 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
         if(this.faicon){
             cfg.cn[0].cls += ' fa ' + this.faicon;
         }
+        if(this.fa){
+            cfg.cn[0].cls += ' fa ' + this.fa;
+        }
         
         if(this.weight){
             cfg.cls += ' alert-' + this.weight;