tables/examples/view.php

20 lines
447 B
PHP
Raw Normal View History

2024-07-23 15:17:16 +03:00
<?php
require_once "../vendor/autoload.php";
use Itguild\Tables\ViewJsonTable;
$json = file_get_contents('view.json');
$table = new ViewJsonTable($json);
2024-08-02 15:40:13 +03:00
//$table->rows([
$table->setBeforePrintCell([
2024-08-02 13:26:32 +03:00
'username' => function ($ceil) {
return "<span style='color: aqua'>$ceil</span>";
},
'email' => function ($ceil) {
return "<span style='color: firebrick'>$ceil</span>";
}
]);
2024-07-23 15:17:16 +03:00
$table->create();
$table->render();