export function DataFormatter(cell, row, formatterExtraData, rowIndex, columnIndex) {
var split = '';
var param = '';
var color = '';
var the_row = row;
const type = formatterExtraData.type;
switch(type) {
case 'currency':
cell = '<span style="color:'+color+'">'+numeral(cell).format('$0,0.00')+'</span>';
break;
case 'link':
cell = '<a href="/server/in/menu.jsp?supplier='+row['supNum']+'&name='+param+'">'+cell+'</a>';
break;
case 'dataTablePopUp':
cell = '<a onClick="window.open(\'/server/invval/menu.jsp?product='+row['product']+'&name='+row['prodDesc'] + '&type=' + columnIndex + '&method=' + rowIndex + '\', \'Window\', \'width=205,height=145\');">'+cell+'</a>';
break;
}
return cell;
}
我正在尝试使用检索单击的单元格的列的索引以将其用于与formatterExtraData一起传递的一些其他数据的链接中,但是我似乎无法同时使用formatterExtraData和ColumnIndex
您是否有想法同时获得这两个参数?