ExtJS GridPanel数据工具提示

ExtJS GridPanel数据工具提示,extjs,tooltip,extjs3,gridpanel,extjs-grid,Extjs,Tooltip,Extjs3,Gridpanel,Extjs Grid,我想将工具提示添加到gridpanel的数据中。我想把地图放在工具提示面板上,我知道了,但我的静态地图的宽度是600px,它从工具提示面板溢出。我使用了下面的代码,它工作正常,但不能设置工具提示的宽度。我该怎么办 this.renderToolTip = function(argVal, metadata, record, rowIndex, colIndex, store) { var toolTipImg = '<img src="http://maps.googleapis.

我想将工具提示添加到gridpanel的数据中。我想把地图放在工具提示面板上,我知道了,但我的静态地图的宽度是600px,它从工具提示面板溢出。我使用了下面的代码,它工作正常,但不能设置工具提示的宽度。我该怎么办

this.renderToolTip = function(argVal, metadata, record, rowIndex, colIndex, store)
{
    var toolTipImg = '<img src="http://maps.googleapis.com/maps/api/staticmap?markers=color:green%7C' + record.data.latitude + ',' + record.data.longtitude + '&zoom=15&size=600x200&sensor=false" />';
    var title = record.data.title;

    return '<div ext:qtitle="' + title + '" ext:qtip="' + toolTipImg + '">' + argVal + '</div>';
};
this.renderToolTip=函数(argVal、元数据、记录、行索引、colIndex、存储)
{
var-toolTipImg='';
var title=record.data.title;
返回“”+argVal+“”;
};
试试这个:


对于ExtJs4,以下是属性:

 tagConfig : {
        namespace : "data-",
        attribute : "qtip",
        width : "qwidth",
        target : "target",
        title : "qtitle",
        hide : "hide",
        cls : "qclass",
        align : "qalign",
        anchor : "anchor"
    },
别忘了打电话:

Ext.tip.QuickTipManager.init();
在代码开始时

使用示例:

meta.tdAttr = "data-qtip='texttttt' data-qtitle='title' data-qwidth=140"; 
m、 tdAttr='data qwidth=“160”data qtip=“”


是的,没问题。我在哪里可以找到这种类型的标记?在这里它对我有效。我还有一个问题。如果我在argVal上创建链接,它在hover上不起作用。
返回“”;
meta.tdAttr = "data-qtip='texttttt' data-qtitle='title' data-qwidth=140";