PDA

View Full Version : select all tooltip for checkbox model grid panel header.



punith.mailme
3 Apr 2012, 4:44 AM
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

mitchellsimoens
3 Apr 2012, 12:37 PM
Quick little override to support a headerTip:


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

punith.mailme
4 Apr 2012, 1:35 AM
worked like a charm... Thanks