webfriend13
15 Oct 2012, 11:01 PM
Hi All,
I am using following code to generate a combobox.
Ext.onReady(function(){
Ext.create('Ext.form.field.ComboBox', {
renderTo: Ext.getBody(),
width: 200,
queryMode: 'local',
valueField: 'id',
displayField: 'name',
store: {
fields: ['id', 'name', 'link'],
data: [
{ id: 1, name: 'A', link: 'http://www.google.com'},
{ id: 2, name: 'B', link: 'http://www.yahoo.com'},
{ id: 3, name: 'C', link: 'http://www.microsoft.com'}
]
},
listConfig: {
tpl: [
'<table width="100%"><tpl for=".">',
'<tr>',
'<td role="option" class="x-boundlist-item" width="70%">{name}</td>',
'<td align="right"><a href="{link}" width="30%" target="_blank">manage</a></td>',
'</tr>',
'</tpl></table>'
]
}
});
});
I want to add tooltip to both the columns('TD' tags).
I looked at the following example. But I am able to add tooltip.
http://dev.sencha.com/deploy/ext-4.0.0/examples/form/combos.html#customTplCombo
I am using following code to generate a combobox.
Ext.onReady(function(){
Ext.create('Ext.form.field.ComboBox', {
renderTo: Ext.getBody(),
width: 200,
queryMode: 'local',
valueField: 'id',
displayField: 'name',
store: {
fields: ['id', 'name', 'link'],
data: [
{ id: 1, name: 'A', link: 'http://www.google.com'},
{ id: 2, name: 'B', link: 'http://www.yahoo.com'},
{ id: 3, name: 'C', link: 'http://www.microsoft.com'}
]
},
listConfig: {
tpl: [
'<table width="100%"><tpl for=".">',
'<tr>',
'<td role="option" class="x-boundlist-item" width="70%">{name}</td>',
'<td align="right"><a href="{link}" width="30%" target="_blank">manage</a></td>',
'</tr>',
'</tpl></table>'
]
}
});
});
I want to add tooltip to both the columns('TD' tags).
I looked at the following example. But I am able to add tooltip.
http://dev.sencha.com/deploy/ext-4.0.0/examples/form/combos.html#customTplCombo