This commit is contained in:
2024-08-01 15:10:41 +03:00
parent 433cc85f54
commit 8d1dce0222
2 changed files with 35 additions and 27 deletions

View File

@ -9,14 +9,18 @@ $table = new ListJsonTable($json);
//$table->column("status", function ($ceil){
// return getStatusLabel()[$ceil];
//});
//$table->columns([
// 'status' => function ($ceil) {
// return getStatusLabel()[$ceil];
// },
// 'email' => function ($ceil) {
// return "<span style='color: aqua'>$ceil</span>";
// }
//]);
$table->columns([
'status' => function ($ceil) {
return getStatusLabel()[$ceil];
},
'email' => function ($ceil) {
return "<span style='color: aqua'>$ceil</span>";
},
'description' => function ($ceil) {
return "<span style='color: sienna'>$ceil</span>";
}
]);
//$table->setBeforePrintCell(function ($key, $data) {
// return $key == "email" ? "<span style='color: aqua'>$data</span>" : $data;
//});