tables/examples/view.php

19 lines
416 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 13:26:32 +03:00
$table->rows([
'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();