columns
This commit is contained in:
@ -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;
|
||||
//});
|
||||
|
Reference in New Issue
Block a user