Ext.define('IpostApp.view.stock.StockComparePanel', {
extend: 'Ext.Container',
config: {
selectedCode: "ddddd" //想要获取的值
},
items: [
{
xtype: 'list',
itemTpl: [
'<div class ={[this.getDivClassName(values.symbol)]} ></div>',
{
getDivClassName: function(values) {console.log(this.config.selectedCode); //the seclectedCode iwant to get ,how can i do?????
}
}
]
}]
})
How to access a field outside of property from itemTpl's XTemplate in Sencha Touc
Aucun commentaire:
Enregistrer un commentaire