public function renderNodeControll($model)
{
if ($this->_getMode() == SelectTree::MOD_MULTI) {
$controllElement = Html::checkbox('tree_id', false, ['value' => $model->id, 'class' => 'sx-checkbox', 'style' => 'float: left; margin-left: 5px; margin-right: 5px;', 'onclick' => new JsExpression(<<<JS
sx.Tree.select("{$model->id}");
JS
)]);
} else {
if ($this->_getMode() == SelectTree::MOD_SINGLE) {
$controllElement = Html::radio('tree_id', false, ['value' => $model->id, 'class' => 'sx-readio', 'style' => 'float: left; margin-left: 5px; margin-right: 5px;', 'onclick' => new JsExpression(<<<JS
sx.Tree.selectSingle("{$model->id}");
JS
)]);
} else {
if ($this->_getMode() == SelectTree::MOD_COMBO) {
$controllElement = Html::radio('tree_id', false, ['value' => $model->id, 'class' => 'sx-readio', 'style' => 'float: left; margin-left: 5px; margin-right: 5px;', 'onclick' => new JsExpression(<<<JS
sx.Tree.selectSingle("{$model->id}");
JS
)]);
$controllElement .= Html::checkbox('tree_id', false, ['value' => $model->id, 'class' => 'sx-checkbox', 'style' => 'float: left; margin-left: 5px; margin-right: 5px;', 'onclick' => new JsExpression(<<<JS
sx.Tree.select("{$model->id}");
JS
)]);
} else {
$controllElement = '';
}
}
}
return $controllElement;
}