allow string based values for comboboxarray
[roojs1] / Roo / QuickTips.js
index f9e2810..31d6515 100644 (file)
@@ -44,12 +44,12 @@ Roo.QuickTips = function(){
             t.removeAttribute("title");
             e.preventDefault();
         }else{
-            ttp = t.qtip || et.getAttributeNS(ns, cfg.attribute);
+            ttp = t.qtip || et.getAttributeNS(ns, cfg.attribute) || et.getAttributeNS(cfg.alt_namespace, cfg.attribute) ;
         }
         if(ttp){
             showProc = show.defer(tm.showDelay, tm, [{
                 el: t, 
-                text: ttp
+                text: ttp.replace(/\\n/g,'<br/>'),
                 width: et.getAttributeNS(ns, cfg.width),
                 autoHide: et.getAttributeNS(ns, cfg.hide) != "user",
                 title: et.getAttributeNS(ns, cfg.title),
@@ -250,19 +250,23 @@ Roo.QuickTips = function(){
         * @cfg {String} title
         * Title text to display (defaults to '').  This can be any valid HTML markup.
         */
+        title: '',
        /**
         * @cfg {String} text
         * Body text to display (defaults to '').  This can be any valid HTML markup.
         */
+        text : '',
        /**
         * @cfg {String} cls
         * A CSS class to apply to the base quick tip element (defaults to '').
         */
+        cls : '',
        /**
         * @cfg {Number} width
         * Width in pixels of the quick tip (defaults to auto).  Width will be ignored if it exceeds the bounds of
         * minWidth or maxWidth.
         */
+        width : null,
 
     /**
      * Initialize and enable QuickTips for first use.  This should be called once before the first attempt to access
@@ -381,7 +385,8 @@ target      Element/String/Array   An Element, id or array of ids that this quic
 
         // private
        tagConfig : {
-           namespace : "ext",
+           namespace : "roo", // was ext?? this may break..
+           alt_namespace : "ext",
            attribute : "qtip",
            width : "width",
            target : "target",