fix slider

This commit is contained in:
2024-12-10 11:56:33 +03:00
parent bfeb2d3c56
commit c7549c225f
11 changed files with 50 additions and 11 deletions

View File

@ -23,6 +23,15 @@ $table->beforePrint(function () {
return IconBtnCreateWidget::create(['url' => '/admin/slider/create'])->run();
});
$entityRelation = new \kernel\EntityRelation();
$additionals = $entityRelation->getEntityRelationsBySlug("slider");
foreach ($additionals as $additional) {
$table->addColumn($additional, $additional, function ($id) use ($entityRelation, $additional) {
return $entityRelation->getAdditionalPropertyByEntityId("slider", $id, $additional);
});
}
$table->columns([
"status" => [
"value" => function ($cell) {