Thanks BitPoet! Awesome plugin. Now to figure out how to get it to play nice with Saki's RowActions
edit: There is a minor bug in this plugin where none of the tipConfig options will get applied if you pass an array of objects when creating the cell tooltips. Here is a fix:
Code:
init: function(grid) {
if( ! this.ajaxTips ) {
return;
}
this.tipTpls = {};
this.tipFns = {};
this.tipAfterFns = {};
this.tipUrls = {};
// Generate tooltip templates
Ext.each( this.ajaxTips, function(tip) {
this.tipTpls[tip.field] = new Ext.XTemplate( tip.tpl );
console.log('logging tip', tip);
if( tip.url ) {
this.tipUrls[tip.field] = tip.url;
}
if( tip.fn )
this.tipFns[tip.field] = tip.fn;
if( tip.afterFn )
this.tipAfterFns[tip.field] = tip.afterFn;
if (tip.tipConfig)
this.tipConfig = tip.tipConfig;
}, this);
// delete now superfluous config entry for ajaxTips
delete( this.ajaxTips );
grid.on( 'render', this.onGridRender.createDelegate(this) );
} // End of function init