Hi,
Please advise how to reference a Calculated::field in Table using Icon. The following summarized example do not return anything:
Calculated::create("calculatedField",function($row){
// some operations
}
->label(""),
Icon::create()
->label("")
->icon(function($row) {
if ($row["calculatedField"] == "Low Performer"){
return "fa fa-exclamation-triangle";
}
elseif ($row["calculatedField"] == "Average Performer"){
return "fa fa-balance-scale";
}
elseif ($row["calculatedField"] == "Strong Performer"){
return "fa fa-dumbbell";
}
elseif ($row["calculatedField"] == "Top Performer"){
return "fa fa-medal";
}
})->cssStyle("font-size:28px"),
Thank you!