view custom ceil
This commit is contained in:
@ -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