-
3 Nov 2010 10:15 AM #21
Thanks for your suggestion, I've modified my example source here to also apply the tip fn to the data used in non-Ajax tooltips. Let me know if that's what you need. The extension code itself can be found at this url. Just for clarification though, the fn function will be applied before, not after the Ajax call. The reason I implemented it was to allow the function to create the correct request data for already existing Ajax services. In my example I've added an "afterFn" configuration property to the CellToolTip which can be used to post-process the Ajax return data in the same way.
-
5 Nov 2010 5:27 AM #22
Exactly what I was need. Thanks
-
5 Nov 2010 11:28 AM #23
And one more question: what is the purpose of overriding trackMouse: true in tooltip config, ignoring if tipConfig in plugin instance has different value?
-
9 Nov 2010 11:24 PM #24
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
-
12 Nov 2010 9:18 AM #25
Thankx jstrx, don't know how I didn't notice this before. The online version is fixed now. Let me know in case there are any issues together with the RowActions plugin.
-
12 Nov 2010 9:28 AM #26
I don't remember exactly whether this was on purpose or just plain lazyness on my part. I guess I couldn't imagine not being able to move the tooltip anyway, as I'm constantly annoyed when popups hide parts of the data I'm trying to compare

The current online version now uses applyIf instead of apply for the trackMouse property, so it can be overridden in the tipConfig.
-
26 Nov 2010 11:09 PM #27
-
26 Jan 2011 12:38 AM #28
-
20 May 2011 4:36 PM #29
Noticed when I add anchor to tipConfig it causes a double ajax POST, but also anchors the tooltip to the left side right where I want it. weird
Code:tipConfig = { dismissDelay: 0, hideDelay: 0, trackMouse: false, anchor: 'left' // this is causing a double POST, but it also keeps the tooltip on the screen }
-
23 Apr 2012 2:47 PM #30
Code
Code
Does anyone still have the code for this plugin? I can't find it on the Sencha site.
Thank you.Matt Bittner


Reply With Quote