add row at json view table

This commit is contained in:
2024-11-28 11:57:17 +03:00
parent 5f46431d45
commit 5effacf12f
2 changed files with 62 additions and 17 deletions

View File

@ -7,6 +7,10 @@ use Itguild\Tables\ViewJsonTable;
$json = file_get_contents('view.json');
$table = new ViewJsonTable($json);
$table->addRow("Имя", function (){
return "Kirill";
}, ['after' => 'username']);
//$table->rows([
$table->rows([
'username' => function ($cell) {