1
在extjs中,对于记录对象,是否有一个awy来获取特定的数据索引。我需要的是这样的: 我有一个呈现小数的格式的渲染函数。如果记录的dataIndex是'dollaramount',那么我会格式化一种方法。如果有其他事情,我以另一种方式来形式 因此函数是:extjs小数位渲染器
decimalsRenderer: function(value, metaData, record, rowIndex, colIndex, store){
if (record.data.index =='amount')
// format using 2 decimals
else
//format using 3 decimals
},
但record.data.index是不允许的。我该怎么做?