Roo/bootstrap/Modal.js
[roojs1] / Roo / bootstrap / Modal.js
index 686080e..0387f95 100644 (file)
@@ -20,6 +20,8 @@
  * @cfg {Number} height fixed height - usefull for chrome extension only really.
  * @cfg {String} size (sm|lg) default empty
  * @cfg {Number} max_width set the max width of modal
+ * @cfg {Boolean} editable_title can the title be edited
+
  *
  *
  * @constructor
@@ -98,6 +100,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
     max_height: 0,
     
     fit_content: false,
+    editable_title  : false,
 
     onRender : function(ct, position)
     {
@@ -287,7 +290,9 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
             this.closeEl.on('click', this.hide, this);
         }
         Roo.EventManager.onWindowResize(this.resize, this, true);
-
+        if (this.editable_title) {
+            this.headerEl.on('click', this.showHeaderInput, this);
+        }
 
     },