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