{{function(){
let colors = {
'active':'Green',
'inactive':'orange',
'suspended':'Red',
'deleted':'purple'
};
return colors[currentRow.currentstatus]
}()}}
I am trying to color the row like I did before in another table but this time it is not taking my data.
export default {
run: (orderList) => {
return orderList
.filter(order =>
order["orders.orderid"] ||
order["entity.customerid"] ||
order["orders.endtime"] ||
order["entity.currentstatus"] ||
order["entitytype.entitytypename"] ||
order["entity.description"]
)
.map(order => ({
"orderid": order["orders.orderid"],
"customerid": order["entity.customerid"],
"endtime": parseInt(order["orders.endtime"], 10),
"currentstatus": order["entity.currentstatus"],
"entitytypename": order["entitytype.entitytypename"],
"description": order["entity.description"]
}));
}
}