Hybrid View

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

      0  

    Default Ext.ux.plugins.grid.CellToolTips

    Ext.ux.plugins.grid.CellToolTips


    I'm trying my hands by announcing my first plugin, CellToolTips, here. It's a small plugin for the GridPanel to add different tooltips to individual rows of a grid. Each column tooltip has its own XTemplate that is dynamically filled from the underlying data record.

    The 'magic' behind the plugin is that only a single ToolTip is created for the whole grid, making it quite memory friendly.

    Note: to work in Ext 2, it needs Animal's triggerElement override for the ToolTip.

    Sources:

    The source can be found here.

    A demo is here.

    Let me know what you think.
    Last edited by BitPoet; 12 Nov 2010 at 9:12 AM. Reason: Updated links for version 1.3

  2. #2
    Sencha User
    Join Date
    Apr 2007
    Posts
    172
    Vote Rating
    1
    medusadelft is on a distinguished road

      0  

    Default


    It doesn't work in IE6 or IE7....

    But in FF it does work. Nice.

  3. #3
    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 the feedback. Made a stupid copy&paste mistake, now the demo also works in IE and Chrome.

  4. #4
    Ext User zhw511006's Avatar
    Join Date
    Oct 2008
    Posts
    39
    Vote Rating
    0
    zhw511006 is on a distinguished road

      0  

    Default


    Great !Thank you For Sharing!

    It Works nice!

  5. #5
    Sencha Premium Member
    Join Date
    Jun 2008
    Posts
    323
    Vote Rating
    6
    Scorpie is on a distinguished road

      0  

    Default


    These kind of improvements are really nice! Thanks!
    I`m from Holland!

  6. #6
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    FYI, the delegate config, and the triggerElement property of Tooltip are going to be in 3.0, so when you upgrade, you can remove the override which adds these capabilities.

  7. #7
    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. #8
    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. #9
    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
                }