X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FQuickTips.js;h=31d6515a43fd52d8e73ac049d77d672508eae9b1;hb=dc5d9380aff25134bf025953bdafe40b580337ff;hp=f9e2810c65bc16a13df62354942dc7d276a4a9a1;hpb=4d9cd83949f3c24871af08cebb30b1f8102ac4c9;p=roojs1 diff --git a/Roo/QuickTips.js b/Roo/QuickTips.js index f9e2810c65..31d6515a43 100644 --- a/Roo/QuickTips.js +++ b/Roo/QuickTips.js @@ -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,'
'), 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",