Threaded View

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    64
    Answers
    2
    Vote Rating
    0
    punith.mailme is on a distinguished road

      0  

    Default Answered: select all tooltip for checkbox model grid panel header.

    Answered: select all tooltip for checkbox model grid panel header.


    Hi i have a checkboxmodel grid panel, in the header row of the grid i want to have a tooltip for selectall checkbox.

    I have no idea on how to tweak the CSS and have nt tried it, hence not posting any code here
    kindly assist doing this.


    Thanks
    Punith

  2. Quick little override to support a headerTip:

    Code:
    Ext.define('Override.selection.CheckboxModel', {
        override : 'Ext.selection.CheckboxModel',
    
        headerTip : 'Select All',
    
        getHeaderConfig : function() {
            var ret       = this.callOverridden(arguments),
                headerTip = this.headerTip;
    
            if (headerTip) {
                ret.text = '<div data-qtip="' + headerTip + '" style="width:100%;height:100%;">&nbsp;</div>';
            }
    
            return ret;
        }
    });

Thread Participants: 1

Tags for this Thread