filter class
This commit is contained in:
@ -10,18 +10,22 @@ $table = new ListJsonTable($json);
|
||||
$table->columns([
|
||||
"created_at" => [
|
||||
"format" => "date:Y-m-d",
|
||||
'filter' => "date"
|
||||
'filter' => ["input" => "date"]
|
||||
],
|
||||
'description' => [
|
||||
"format" => "html",
|
||||
"style" => ["width" => "300px"],
|
||||
"filter" => "text",
|
||||
"filter" => ["input" => ["radio" => "hello", "bye"]],
|
||||
"value" => function ($cell) {
|
||||
return "<span style='color: sienna'>$cell</span>";
|
||||
}
|
||||
],
|
||||
'description2' => [
|
||||
"filter" => ["input" => "text"],
|
||||
],
|
||||
'status' => [
|
||||
"format" => "integer",
|
||||
"filter" => ["select" => getStatusLabel()],
|
||||
"value" => function ($cell) {
|
||||
return getStatusLabel()[$cell];
|
||||
}],
|
||||
|
Reference in New Issue
Block a user