Hybrid View
-
29 Sep 2009 11:25 AM #1
Hi all, My requirement is to apply tooltip to the ComboBox on the hover of the mouse
Hi all, My requirement is to apply tooltip to the ComboBox on the hover of the mouse
And this is my Code I tried..
function prepareAverageWorkExpCombo(emptyValueText) {
var averageWorkExpStore = new Ext.data.SimpleStore( {
fields : [ 'workExp' ],
data : Ext.data.workExp
});
var averageWorkExpCombo = new Ext.form.ComboBox( {
store : averageWorkExpStore,
displayField : 'workExp',
typeAhead : true,
id : 'averageWorkExperiance',
hideLabel : true,
mode : 'local',
triggerAction : 'all',
emptyText : 'Any',
selectOnFocus : true,
resizable : true,
width:100,
listeners : {
'change' : comboBoxListener
}
});
var tt = new Ext.ToolTip({
target: 'track-tip',
title: 'Mouse Track',
width:200,
html: 'This tip will follow the mouse while it is over the element',
trackMouse:true
});
return averageWorkExpCombo;
}
Where am I going wrong. Any small help wil be of great help.
Thanks in AdvanceRegards,
Vijaya
-
29 Sep 2009 11:53 AM #2
Try this
Try this
Code:var averageWorkExpCombo = new Ext.form.ComboBox({ store: averageWorkExpStore, displayField: 'workExp', typeAhead: true, hideLabel: true, mode: 'local', triggerAction: 'all', emptyText: 'Any', selectOnFocus: true, resizable: true, width: 100, listeners: { 'change': comboBoxListener } }); var tt = new Ext.ToolTip({ target: averageWorkExpCombo, title: 'Mouse Track', width: 200, html: 'This tip will follow the mouse while it is over the element', trackMouse: true });dlbjr - David L. Bryant Jr.
Owner of
dlbjr Technology Consulting
Web2 System Developer & Consultant
Focused on C.I. - Six Sigma - Shingo - Lean Technologies
dlbjr.consulting@gmail.com
Owner of:
Attractive Graphics - "custom screen printing"
attractivegraphicscsp@gmail.com
-
29 Sep 2009 10:28 PM #3
Thnks for ur help dlbjr.. I tried that but I am getting the error at
"target:averageWorkExpCombo" as "this.target is null or not an Object".
Should I add some .js file??? I added ToolTip.js and tried.Regards,
Vijaya
-
30 Sep 2009 3:59 AM #4
The target?
The target?
The target will be what ever variable you make the Combo box as.
dlbjr - David L. Bryant Jr.
Owner of
dlbjr Technology Consulting
Web2 System Developer & Consultant
Focused on C.I. - Six Sigma - Shingo - Lean Technologies
dlbjr.consulting@gmail.com
Owner of:
Attractive Graphics - "custom screen printing"
attractivegraphicscsp@gmail.com
-
21 Jan 2010 9:35 PM #5


Reply With Quote