当xtype为'actioncolumn'时,如何使用带有标题和文本的Extjs工具提示

时间:2012-02-08 09:47:29

标签: extjs extjs4 tooltip gridpanel

如果在Ext.grid.Panel中xtype为actioncolumn时如何使用带有文本和标题的工具提示。

1 个答案:

答案 0 :(得分:0)

您可以将html放入工具提示中。例如:

{
    xtype: 'actioncolumn',
    width: 50,
    items: [{
        icon   : '../shared/icons/fam/delete.gif',
        tooltip: '<h3>Title</h3>Text text text',
        handler: function(grid, rowIndex, colIndex) {}
    }]
}
相关问题