2014-10-08 26 views

回答

0

尝试将渲染器添加到您的动作列中,并以以下方式向html添加工具提示。

renderer: function (value, metadata, record, rowIndex, colIndex, store){ 
      metadata.tdAttr = 'data-qtip="' + value + '"'; 
      return value; 
      } 

希望这可以帮助你。

+0

试过了。不工作。 – user1640256 2014-10-08 14:34:09

+0

@ user1640256你能否贴一下你正在做的一段代码? – Sreek521 2014-10-09 04:54:15

0

您可以将此添加到您的操作列定义中。应该管用。

  { 
       xtype: 'actioncolumn', 
       sortable: false, 
       text: 'Action', 
       items: [ 
        { 
         iconCls: 'fa fa-pencil', 
         getTip: function(value, metadata, record, row, col, store){ 
          var toolTipOne = 'Tool Tip One'; 

          if(record.get('something')){ 
           toolTipOne = 'New Tool Tip'; 
          } 

          return toolTipOne; 
         } 
        } 
       ] 
      } 
1

您是否初次使用quicktip?

Ext.tip.QuickTipManager.init();

相关问题