public function renderNodeControll($model)
{
$disabled = false;
if ($this->isAllowNodeSelectCallback && is_callable($this->isAllowNodeSelectCallback)) {
$function = $this->isAllowNodeSelectCallback;
if (!$function($model)) {
$disabled = "disabled";
}
}
if ($this->multiple) {
$controllElement = Html::checkbox($this->id . '-checkbox', false, ['value' => $model->id, 'class' => 'sx-checkbox', 'disabled' => $disabled, 'style' => 'float: left; margin-left: 5px; margin-right: 5px;']);
} else {
$controllElement = Html::radio($this->id . '-radio', false, ['value' => $model->id, 'class' => 'sx-radio', 'disabled' => $disabled, 'style' => 'float: left; margin-left: 5px; margin-right: 5px;']);
}
return $controllElement;
}