When using the ComboBox control in extjs, you can easily implement the prompt content by changing the TPL content. For example, in the official example Examples \ form \ combos.html, You can implement the prompt information for selecting the ComboBox content:
Since the information text can be displayed, of course, the image can be displayed. This can be achieved through testing.
PartCodeAs follows:
VaR addmenuicon = new Ext. Form. ComboBox (
{
Name: 'addmenuicon ',
Store: New Ext. Data. Store (
{
Autoload: True,
Proxy: New Ext. Data. httpproxy (
{URL: 'sys _ sysmenumanager_get.asp? Action = imgfilelist'
}),
Reader: New Ext. Data. jsonreader (
{
}, ['Name', 'url'])
}),
TPL: '<TPL for = ". "> <Div X-combo-list-item: QTip = "{URL}" class = "X-combo-list-item"> & nbsp; {name} </div> </TPL> ',
Fieldlabel: "menu icon ",
Emptytext: 'select ',
...
Here, name is the name of the icon, and URL is the path of the icon, as follows: