📅  最后修改于: 2022-03-11 14:55:50.353000             🧑  作者: Mango
$data = $this->SourceData->getData();
return Datatables::of($data)
->addIndexColumn()
->editColumn('show', function ($data) {
return ($data->show == 'y')?"Yes":($data->show == 'n')?"No":"";
})
->addColumn('Actions', function($data) {...})
->rawColumns(['Actions'])
->make(true);