0
コンボの項目が不運に選択されているときに、表示欄にアイコンを設定するいくつかの方法を試しましたが、これは誰でも助けようとする人のためのものですこの。どんな光でも非常に感謝しています。font-awesome icon combobox extjsの表示で6
fieldSubTpl: [
'<div class="{hiddenDataCls}" role="presentation"></div>',
'<div id="{id}" type="{type}" style="background-color:white; font-size:1.1em; line-height: 2.1em;" ',
'<tpl if="size">size="{size}" </tpl>',
'<tpl if="tabIdx">tabIndex="{tabIdx}" </tpl>',
'class="{fieldCls} {typeCls}" autocomplete="off"></div>',
'<div id="{cmpId}-triggerWrap" class="{triggerWrapCls}" role="presentation">',
'{triggerEl}',
'<div class="{clearCls}" role="presentation"></div>',
'</div>', {
compiled: true,
disableFormats: true
}
],
オーバーライドこのようなコンボのsetRawValue方法:
ありがとう、私は古いExt.ux.icon.comboよりも簡単な方法があると思っていましたが、それは正しい方法だと思います。ハッピーホリデー –
@HéctorSandovalO。どういたしまして –