add custom columns filter

This commit is contained in:
2024-08-22 13:08:25 +03:00
parent af1b996766
commit 77a306a0f6
3 changed files with 14 additions and 3 deletions

View File

@ -9,12 +9,13 @@ $table = new ListJsonTable($json);
$table->columns([
"created_at" => [
"format" => "date:Y-m-d"
"format" => "date:Y-m-d",
'filter' => "date"
],
'description' => [
"format" => "html",
"style" => ["width" => "300px"],
"filter" => '',
"filter" => "text",
"value" => function ($cell) {
return "<span style='color: sienna'>$cell</span>";
}