add row at json view table

This commit is contained in:
apuc committed 2024-11-28 11:57:17 +03:00
1 parent 5f46431d45
commit 5effacf12f
2 files changed
+62 -17

No files matched your search

+4
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) {