{
text : "Number without dots",
flex : 2,
dataIndex : "numberwithoutdots",
renderer: Ext.util.Format.numberRenderer('€ 0')
}
答案 0 :(得分:1)
您可以使用自定义渲染器
function renderMoney(value,b,records){
return Ext.util.Format.number(value, records.data.currency + ' ' + records.data.format)
}
...
{
text : "Number with dots",
flex : 1,
dataIndex : "numberwithdots",
renderer: renderMoney
}
....