PDA

View Full Version : ToolTip in DateField



sharadtitan2006
8 Sep 2010, 4:33 AM
I have requirement to provide ToolTip with DateField. Please help. Its urgent.

Condor
8 Sep 2010, 4:42 AM
On the trigger on on the input?

dateField.on('render', function(c){
Ext.QuickTips.register({
target: c.getEl(),
text: 'Enter a date'
});
Ext.QuickTips.register({
target: c.trigger,
text: 'Click to select a date'
});
});

sharadtitan2006
8 Sep 2010, 9:14 PM
Thanks for the reply, its working now.

Condor
8 Sep 2010, 9:32 PM
Try:

...
beforeBlur: function() {
top.frmApplet.formatDateControlExt(this);
},
afterRender: function(){
com.abc.components.CLDateField.superclass.afterRender.call(this);
Ext.QuickTips.register({
target: c.getEl(),
text: 'Enter a date'
});
Ext.QuickTips.register({
target: c.trigger,
text: 'Click to select a date'
});
}
});

sharadtitan2006
8 Sep 2010, 9:56 PM
Thanks for the reply, its working now.