view custom ceil
This commit is contained in:
1 parent
6d5f6a8665
commit
67a3f5770e
3 files changed
+37
-14
No files matched your search
@@ -7,5 +7,13 @@ use Itguild\Tables\ViewJsonTable;
|
||||
$json = file_get_contents('view.json');
|
||||
|
||||
$table = new ViewJsonTable($json);
|
||||
$table->rows([
|
||||
'username' => function ($ceil) {
|
||||
return "<span style='color: aqua'>$ceil</span>";
|
||||
},
|
||||
'email' => function ($ceil) {
|
||||
return "<span style='color: firebrick'>$ceil</span>";
|
||||
}
|
||||
]);
|
||||
$table->create();
|
||||
$table->render();
|
||||
Reference in new issue
Block a user