["class" => "table table-bordered", "border" => "2"], 'baseUrl' => "/admin/slider", ])); $table->beforePrint(function () use ($slider) { $btn = \kernel\widgets\IconBtn\IconBtnListWidget::create(['url' => "/admin/slider"])->run(); $btn .= \kernel\widgets\IconBtn\IconBtnEditWidget::create(['url' => "/admin/slider/update/" . $slider->id])->run(); $btn .= \kernel\widgets\IconBtn\IconBtnDeleteWidget::create(['url' => "/admin/slider/delete/" . $slider->id])->run(); return $btn; }); $table->rows([ 'status' => (function ($data) { return \kernel\modules\slider\models\Slider::getStatus()[$data]; }) ]); $table->create(); $table->render();