view custom ceil

This commit is contained in:
2024-08-02 13:26:32 +03:00
parent 6d5f6a8665
commit 67a3f5770e
3 changed files with 37 additions and 14 deletions

View File

@ -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();