1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    63
    Answers
    2
    Vote Rating
    0
    prakashkadakol is on a distinguished road

      0  

    Default Unanswered: extending tool tip

    Unanswered: extending tool tip


    hi

    how i can extend tool tip that is wanna reset tool tip message used in the Editable grid panel.not able to get where exactly tool tip being called in grid panel.

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Answers
    113
    Vote Rating
    96
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    There is poor support for tooltips in ExtJS. Only a few components have tooltips which can be changed dynamically (e.g. buttons have setTooltip method). Here is a function I am using for having a tooltip displayed over the grid. You can call it after creation of the grid. "panel" here is the grid.

    Code:
    function create_tooltip_panel_body_grid(panel)
    {
        panel.on("afterrender", function(g) {
            panel.tip = Ext.create('Ext.tip.ToolTip', {
                target: panel.el,
                delegate: '.x-grid-view',
                trackMouse: true,
                renderTo: Ext.getBody(),
                listeners: {
                    beforeshow: function(tip) {                    
                            tip.update('hello world');                    
                    }
                }
            });
        });
    }
    Regards,
    Farish

Thread Participants: 1

Tags for this Thread