PDA

View Full Version : How could I create tooltip above combobox with selected record?



Risa
21 Oct 2014, 12:47 PM
I try this:


listeners: {'select': function(combo, record, index){
var quickTipText = '';
Ext.QuickTips.unregister(this.getEl());
if ((record instanceof Ext.data.Record) && (record.get('field1') !== ""))
quickTipText = record.get('field1');
if (quickTipText) {
Ext.QuickTips.register({
target: this.getEl(),
text: quickTipText
});
}
}
}

It doesn't work.

Risa
21 Oct 2014, 12:50 PM
---

slemmon
23 Oct 2014, 11:14 PM
Hi,

See if the below fiddle helps to get you going in the right direction:

c9e