custom column

This commit is contained in:
2024-07-31 17:11:29 +03:00
parent 8bc8a75a53
commit 320e1070ba
4 changed files with 63 additions and 29 deletions

View File

@ -12,5 +12,11 @@ $table->setBeforePrintCell(function ($key, $data) {
$table->afterPrint(function ($meta) {
return "<div>After Print</div>";
});
$table->addColumn("Колонка 33", "k33", function ($id){
return "my ID: " . $id;
});
$table->addColumn("Колонка 34", "k34", function ($id){
return "some34";
});
$table->create();
$table->render();