Упрощенный пример < /p>
Код: Выделить всё
renderCell: (params: GridCellParams) => {
const today = new Date();
if (Date.parse(params.row.effectiveStartDateEst) > today){
return
}
else{
return
}
},
valueGetter: (params: GridCellParams) => {
const today = new Date();
if (Date.parse(params.row.effectiveStartDateEst) > today){
return 'Inactive'
}
else{
return 'Active'
}
}
Подробнее здесь: https://stackoverflow.com/questions/795 ... ng-mui-dat