formats and style

This commit is contained in:
2024-08-08 17:08:46 +03:00
parent d0f136e484
commit 38d5deb36a
6 changed files with 50 additions and 15 deletions

View File

@ -12,8 +12,12 @@ $table->columns([
"created_at" => [
"format" => "date:Y-m-d",
],
'description2' => [
"format" => "html:",
'description' => [
"format" => "html",
"style" => ["width" => "300px"],
"value" => function ($cell) {
return "<span style='color: sienna'>$cell</span>";
}
],
'status' => function ($cell) {
return getStatusLabel()[$cell];
@ -21,9 +25,6 @@ $table->columns([
'email' => function ($cell) {
return "<span style='color: aqua'>$cell</span>";
},
'description' => function ($cell) {
return "<span style='color: sienna'>$cell</span>";
}
]);
//$table->setBeforePrintCell(function ($key, $data) {
// return $key == "email" ? "<span style='color: aqua'>$data</span>" : $data;