1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Wisconsin
    Posts
    23
    Vote Rating
    0
    MCSchlemme is on a distinguished road

      0  

    Default Unanswered: Tool tip

    Unanswered: Tool tip


    Hi,

    I have a grid and would like to put a tool tip on the column headings so when the user hovers over any column, a tool tip with more explaination of what in the column would appear.

    Thanks...

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,623
    Vote Rating
    331
    Answers
    550
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      1  

    Default


    Here's one way.

    Code:
    Ext.tip.QuickTipManager.init();
    
    Ext.create('Ext.grid.Panel', {
        ...
        columns: [
            {
                ...
                listeners: {
                    afterrender: function(col) {
                        col.getEl().set({'data-qtip': 'Tooltip Text'});
                    }
                }
            }
        ]
    });

Thread Participants: 1