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

      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,402
    Vote Rating
    1103
    Answers
    3681
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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

      0  

    Default

    worked like a charm... Thanks

Thread Participants: 1

Tags for this Thread