public function renderDataCellContent($model, $key, $index)
{
// Set the attribute in a nice variable that we can use
$sAttribute = $this->attribute;
// Does the field have the unset value
if ($model->{$sAttribute} == $this->unsetValue) {
return BaseHtml::checkbox('actionColumChecbox', false, ['data-id' => $model->id, 'class' => 'checkActionColumn', 'data-saveurl' => $this->setUrl]);
}
$this->setContent = Yii::$app->formatter->asDatetime($model->{$sAttribute}, 'medium');
// Return the set content
return strtr($this->setTemplate, ['{check}' => $this->setCheck, '{content}' => $this->setContent]);
}