Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    64
    Answers
    2
    Vote Rating
    0
      0  

    Default 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;
        }
    });

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Answers
    3976
    Vote Rating
    1390
      0  

    Default

    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;
        }
    });
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    64
    Answers
    2
    Vote Rating
    0
      0  

    Default

    worked like a charm... Thanks

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •