-
3 Apr 2012 4:44 AM #1
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
-
Best Answer Posted by mitchellsimoens
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%;"> </div>'; } return ret; } });
-
3 Apr 2012 12:37 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
- Answers
- 3100
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%;"> </div>'; } return ret; } });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
4 Apr 2012 1:35 AM #3


Reply With Quote