1. #21
    Sencha User BitPoet's Avatar
    Join Date
    Sep 2008
    Location
    Bavaria
    Posts
    277
    Vote Rating
    1
    BitPoet is on a distinguished road

      0  

    Default


    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.

  2. #22
    Sencha User
    Join Date
    Jan 2010
    Location
    Yekaterinburg, Russia
    Posts
    13
    Vote Rating
    0
    sand123 is on a distinguished road

      0  

    Default


    Exactly what I was need. Thanks

  3. #23
    Sencha User
    Join Date
    Jan 2010
    Location
    Yekaterinburg, Russia
    Posts
    13
    Vote Rating
    0
    sand123 is on a distinguished road

      0  

    Default


    And one more question: what is the purpose of overriding trackMouse: true in tooltip config, ignoring if tipConfig in plugin instance has different value?

  4. #24
    Sencha User
    Join Date
    Apr 2010
    Posts
    7
    Vote Rating
    0
    jstrx is on a distinguished road

      0  

    Default


    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

  5. #25
    Sencha User BitPoet's Avatar
    Join Date
    Sep 2008
    Location
    Bavaria
    Posts
    277
    Vote Rating
    1
    BitPoet is on a distinguished road

      0  

    Default


    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.

  6. #26
    Sencha User BitPoet's Avatar
    Join Date
    Sep 2008
    Location
    Bavaria
    Posts
    277
    Vote Rating
    1
    BitPoet is on a distinguished road

      0  

    Default


    Quote Originally Posted by sand123 View Post
    And one more question: what is the purpose of overriding trackMouse: true in tooltip config, ignoring if tipConfig in plugin instance has different value?
    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.

  7. #27
    Ext User
    Join Date
    Nov 2010
    Posts
    1
    Vote Rating
    0
    sunyi is on a distinguished road

      0  

    Default


    Quote Originally Posted by BitPoet View Post
    Thanks for the feedback. Made a stupid copy&paste mistake, now the demo also works in IE and Chrome.
    it doesn't work in IE6. How to fix the problem?please help me

  8. #28
    Ext User
    Join Date
    Nov 2010
    Posts
    1
    Vote Rating
    0
    driesva is on a distinguished road

      0  

    Default


    Quote Originally Posted by sunyi View Post
    it doesn't work in IE6. How to fix the problem?please help me
    I think the issue is a comma in the plugin source code:
    Code:
    ...
            Ext.applyIf(this.tipConfig, {
                trackMouse:  true,
            });
    ...
    If you delete the comma after true, it should work.

  9. #29
    Sencha User
    Join Date
    Dec 2009
    Posts
    52
    Vote Rating
    6
    TonyBones is on a distinguished road

      0  

    Default


    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
                }

  10. #30
    Ext JS Premium Member Matt Bittner's Avatar
    Join Date
    Aug 2008
    Posts
    104
    Vote Rating
    1
    Matt Bittner is on a distinguished road

      0  

    Default Code

    Code


    Does anyone still have the code for this plugin? I can't find it on the Sencha site.

    Thank you.
    Matt Bittner

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar